[Tex/LaTex] fontawesome and pdflatex


When using pdflatex and the fontawesome package the below error shows up.

! Fatal fontspec error: "cannot-use-pdftex"
! The fontspec package requires either XeTeX or LuaTeX to function.
! You must change your typesetting engine to, e.g., "xelatex" or "lualatex"
! instead of plain "latex" or "pdflatex".
! See the fontspec documentation for further information.
! For immediate help type H <return>.

Wish to keep on using "pdflatex" instead of "xelatex" or "lualatex".

In fontawesome Version 4.4.0 manual it says "When using the (pdf)(LA)TEX
engine, the fontawesome package doesn’t require any external package".

Tried solutions proposed for this question (Fontawesome doesn't scale up) without success.



Best Answer

Thanks to @AkiraKakuto, the problem was that MikTex was still using old versions of the fontawesome package from the AppData/Roaming folder despite the package was updated using the package manager and the "update app" within MiKTex.

The problem is solved by deleting the fontawesome folder within AppData/Roaming/MiKTex/'version'.