When I try to enable fontawesome icons in moderncv, I get this error in the pdflatex log:
! LaTeX Error: Encoding scheme `TU' unknown.
A minimal example:
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{casual}
\moderncvcolor{blue}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{babel}
\name{John}{Doe}
\title{C/C++ Development}
\phone[mobile]{+1~xxx-yyyy}
\email{john.doe@gmail.com}
\homepage{www.tractor.com}
\social[linkedin]{johndoe}
\social[github]{john-doe}
\social[stackoverflow]{012345/johndoe}
\social[orcid]{0000-0001-2345-6778}
\social[researchgate]{John-Doe}
\social[googlescholar]{ADFIE89AD}
\moderncvicons{awesome}
\renewcommand*{\bibliographyitemlabel}{[\arabic{enumiv}]}
\begin{document}
\makecvtitle
foo
\end{document}
In fontawesomebrands.fd and fontawesomepro.fd there are many references to TU, so it appears to be some kind of central element. But without any hint from pdflatex, and nothing in google searches, I don't have a way to figure out what's missing or configured wrong.
UPDATE: excerpts from the log file that look relevant to fontawesome (since there is no way to post an actual log file attachment):
This is pdfTeX, Version 3.141592653-2.6-1.40.22 (TeX Live 2021) (preloaded format=pdflatex 2023.3.13) 10 AUG 2023 12:33
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**minimal.tex
(./minimal.tex
LaTeX2e <2020-10-01> patch level 4
L3 programming layer <2021-05-07>
(/usr/share/texlive/texmf-dist/tex/latex/moderncv/moderncv.cls
Document Class: moderncv 2021/01/21 v2.1.0 modern curriculum vitae and letter document class
...
(/usr/share/texlive/texmf-dist/tex/latex/fontawesome5/fontawesome5.sty
Package: fontawesome5 2020/03/24 v5.13.0 Font Awesome 5
(/usr/share/texlive/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.sty
Package: l3keys2e 2021-05-07 LaTeX2e option processing using LaTeX3 keys
)
(/usr/share/texlive/texmf-dist/tex/latex/fontawesome5/fontawesome5-generic-help
er.sty
Package: fontawesome5-generic-helper 2020/03/24 v5.13.0 non-uTeX helper for fon
tawesome5
(/usr/share/texlive/texmf-dist/tex/latex/fontawesome5/fontawesome5-mapping.def)
)) (/usr/share/texlive/texmf-dist/tex/latex/academicons/academicons.sty
Package: academicons 2020/08/14 v1.9.0 Academicons Icons
))
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/hyperref.sty
Package: hyperref 2021-02-27 v7.00k Hypertext links for LaTeX
...
LaTeX Font Info: Trying to load font information for U+fontawesomefree2 on i
nput line 33.
(/usr/share/texlive/texmf-dist/tex/latex/fontawesome5/ufontawesomefree2.fd)
(/usr/share/texlive/texmf-dist/tex/latex/microtype/mt-cmr.cfg
File: mt-cmr.cfg 2013/05/19 v2.2 microtype config. file: Computer Modern Roman
(RS)
)
LaTeX Font Info: Trying to load font information for TS1+lmr on input line 3
3.
(/usr/share/texlive/texmf-dist/tex/latex/lm/ts1lmr.fd
File: ts1lmr.fd 2015/05/01 v1.6.1 Font defs for Latin Modern
)
LaTeX Font Info: Trying to load font information for U+fontawesomefree1 on i
nput line 33.
(/usr/share/texlive/texmf-dist/tex/latex/fontawesome5/ufontawesomefree1.fd)
LaTeX Font Info: Trying to load font information for U+fontawesomebrands0 on
input line 33.
(/usr/share/texlive/texmf-dist/tex/latex/fontawesome5/ufontawesomebrands0.fd)
LaTeX Font Info: Font shape U/fontawesomebrands0/solid/n' in size <10> not available (Font) Font shapeU/fontawesomebrands0/regular/n' tried instead o
n input line 33.
LaTeX Font Info: Trying to load font information for U+fontawesomebrands1 on
input line 33.
(/usr/share/texlive/texmf-dist/tex/latex/fontawesome5/ufontawesomebrands1.fd)
LaTeX Font Info: Font shape U/fontawesomebrands1/solid/n' in size <10> not available (Font) Font shapeU/fontawesomebrands1/regular/n' tried instead o
n input line 33.
! LaTeX Error: Encoding scheme `TU' unknown.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.33 \end{document}
\usepackage[utf8]{inputenc}and\usepackage[T1]{fontenc}. – Mico Aug 10 '23 at 06:20Body is limited to 30000 characters; you entered 43718.– Byron Hawkins Aug 10 '23 at 11:00This is pdfTeX, Version 3.141592653-2.6-1.40.22 (TeX Live 2021). But ok, I'll update and see if anything changes. – Byron Hawkins Aug 10 '23 at 11:03