I have a supposedly trivial question and I'm having a hard time finding an answer.

How can I determine the directories where fontspec is looking for OTF files?

I want to edit FontAwesome.otf with fontforge following these instructions:


On an Ubuntu 14.10 machine with TeX Live 2014 installed I edited this font and saved a duplicate in the following directories because I found copies or links to FontAwesome.otf.




After editing the corresponding cls file XeLaTeX and LuaLaTeX still can't find the new font.

  • I changed fontenc to fontspec – egreg Apr 22 '15 at 13:20
  • Why don't you install it as a system font? Fontawesystem is not especially linked to TeX. – Bernard Apr 22 '15 at 13:24
  • I thought I did that by sudo apt-get install fonts-font-awesome. And I don't know why I have so many copies of this font. I messed up something. – Patryk Apr 22 '15 at 13:29
  • @Patryk A solution may be to put your modified version of the font in a folder named ".fonts", in your home directory. This version will be loaded by fontspec instead of the ones in /usr. – Jean-Sébastien Apr 22 '15 at 13:44
  • @Jean-SébastienGosselin Thank you for advice. I created ~/.fonts and copied the font into it. However it still cannot be found when I edit this line \newfontfamily{\FA}{FontAwesome-1000upm}in the corresponding cls file. – Patryk Apr 22 '15 at 13:56

In general, you can use kpsewhich to locate the specific file TeX is going to load.

For your specific question, kpsewhich FontAwesome.otf will tell you which copy of the font you need to modify.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.