1

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:

https://tex.stackexchange.com/a/134244/76715

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.

/usr/share/texlive/texmf-dist/fonts/opentype/public

/usr/share/texmf/fonts/opentype/public

/usr/share/texlive/texmf-dist/fonts/opentype/public

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

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

1 Answer 1

2

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 .