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
    Commented Apr 22, 2015 at 13:20
  • Why don't you install it as a system font? Fontawesystem is not especially linked to TeX.
    – Bernard
    Commented Apr 22, 2015 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
    Commented Apr 22, 2015 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. Commented Apr 22, 2015 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
    Commented Apr 22, 2015 at 13:56

1 Answer 1


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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .