# I can't add Skype logo in moderncv theme via fontawesome

I'm trying to add the skype logo to my CV using moderncv and fontawesome package. I'm running with XeLaTeX, but even with LuaLaTex doesn't work. This is my code and my output. I checked on fontawesome.com and the Unicode used is right.

\documentclass[11pt,a4paper]{moderncv}

% moderncv themes
%\moderncvtheme[blue]{casual}                 % optional argument are 'blue' (default), 'orange', 'red', 'green', 'grey' and 'roman' (for roman fonts, instead of sans serif fonts)
\moderncvtheme[blue]{classic}                % idem

\usepackage{fontawesome}

\usepackage[T1]{fontenc}
% character encoding
\usepackage[utf8x]{inputenc}                   % replace by the encoding you are using
\usepackage[english]{babel}

\usepackage[scale=0.8]{geometry}
\recomputelengths                             % required when changes are made to page layout lengths

\fancyfoot{} % clear all footer fields
\fancyfoot[LE,RO]{\thepage}

\firstname{XXXX}
\familyname{\\ \\XXXX}
\title{Curriculum Vitae}               % optional, remove the line if not wanted
\address{XXXXX}{XXXXXX}    % optional, remove the line if not wanted
\mobile{XXXXXXX}                    % optional, remove the line if not wanted
%\phone{xxxxxx}                      % optional, remove the line if not wanted
%\fax{xxxxxx}                          % optional, remove the line if not wanted
\email{XXXXXX}                      % optional, remove the line if not wanted


Someone has any ideas?

You should never load inputenc or fontenc with XeLaTeX or LuaLaTeX. And \faSkype is already defined by the package. The following document works for me with LuaLaTeX.

\documentclass{article}
\usepackage{fontawesome}

\begin{document}
\end{document}


For reasons I don't understand, XeLaTeX sometimes has problems finding fonts in the texmf tree unless you specify the filename, so if for some reason you must use XeLaTeX and not LuaLaTeX, you can load the package code manually:

\documentclass{article}
\usepackage{fontspec}
\newfontfamily\FA{FontAwesome.otf}
\makeatletter
\newcommand*{\faicon}[1]{%
{\csname faicon@#1\endcsname}}
\input{fontawesomesymbols-generic.tex}
\input{fontawesomesymbols-xeluatex.tex}
\makeatother

\begin{document}

• @TheZone Do the minimal documents in my answer not work? (Apart from modernCV)? You didn't post compilable code with moderncv but my quick test with it worked. Maybe you have an old version of fontawesome. Mine is 2016/05/15 v4.6.3.1 (TL 2017). – Alan Munn Apr 1 '18 at 0:07
• @TheZone Add \listfiles to the first line of the test document and see what version of fontawesome you have. – Alan Munn Apr 1 '18 at 0:11
• Regarding the necessity to use file name in XeTeX, it's mentioned in the fontspec documentation (see Section 1.2 of v2.6g). I submitted a Pull Request to make fontawesome compatible with XeLaTeX a while ago, but no response from the maintainer as of now. – yudai-nkt Apr 1 '18 at 3:29