[Tex/LaTex] Fontawesome icons not showing

fontawesomexetex

I'm recompiling my CV after updating a few details. I use a few icons throughout which have previously worked with no issues, but are not showing anymore.

I get no warnings or errors. I've provided a simplified version of the code below which also compiles with no errors or warnings, but does not show the icons either:

\documentclass{article}
\usepackage{fontawesome}

\begin{document}

\faLinkedin
hello

\end{document}

Can someone please help?

Best Answer

If compiling with XeLaTeX then fontspec package must be included. An example using this method in the modern cv resume:

% !TeX TS-program = xelatex

\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{classic}
\moderncvcolor{blue}
\usepackage[scale=0.75]{geometry}
\usepackage{fontawesome}
\usepackage{fontspec}
\usepackage{tikz}




\name{John}{Doe}
\title{Resum\`e title} 
\phone[mobile]{+1~(234)~567~890}
\phone[fixed]{+2~(345)~678~901}
\phone[fax]{+3~(456)~789~012}
\email{john@doe.org}   
\homepage{www.johndoe.com} 
\social[linkedin]{john.doe} 
\social[twitter]{jdoe}      
\social[github]{jdoe}       

\moderncvicons{awesome}


\begin{document}

\makecvtitle

\faLinkedin \, hello
or 
\faLinkedinSign \,  hello 

\faTwitter

\end{document}