I'm trying to use a .otf font I downloaded with pdflatex. I know that I could just use XeLaTeX to make it work, but I want to stick with pdflatex.
Having downloaded the latest version of LCDF-Typetools, I tried running
otftotfm -a -e texnansx FedraSerifBPro-Book.otf
on one of the four files of the font family, but got the error
otftotfm: encoding 'texnansx' not found
even though I have that file, as shown by running
kpsewhich texnansx.enc
Up until this point I placed the otf files in my home tex tree, i.e. in
~/Library/texmf/fonts/opentype/FedraSerifBPro
but even moving the folder to the texlive tree, i.e. in
/usr/local/texlive/2019/texmf-dist/fonts/opentype/FedraSerifBPro
I still get the error saying that the encoding cannot be found.
I suspect that maybe I don't have the kpathsea path finder. Is there a way to see if this is the problem, or am I doing something else wrong?
logfile, the first line saysotftotfm: encoding file ec.enc found with kpathsea at /opt/tex/texlive/qstex/texmf-dist/fonts/enc/dvips/base/ec.enc– noibe Jun 09 '19 at 18:46autoinstusesotftotfm, so the problem would remain. – noibe Jun 09 '19 at 18:48lcdftypetools(which containsotftotfm) through homebrew before realising thatotftotfmis already present in texlive. How do I know which one I'm using, and how can I switch between the two? – noibe Jun 12 '19 at 10:06whereto check the path, and set the path variable to switch. – Ulrike Fischer Jun 12 '19 at 10:10otftotfm, I uninstalled the one from homebrew and now it seems to work as it should. If you want you can make an answer out of these comments, so that I can accept it. – noibe Jun 12 '19 at 10:25