xdanaux / fontawesome-latex

LaTeX mappings for Font Awesome, the icons font
300 stars 36 forks source link

Using fontawesome with moderncv: "Encoding scheme `TU' unknown." #29

Closed byron-hawkins closed 11 months ago

byron-hawkins commented 11 months ago

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.

byron-hawkins commented 11 months ago

This apparently cannot be made to work with the packages provided by Fedora 36, but it does work in Fedora 38.