I am trying to convert OTF font to be used with pdflatex, using otftotfm. Following direction from these links How do I use TrueType Fonts with PDFTeX using otftotfm? and Installing OpenType Fonts in LaTeX with the LCDF Typetools John Owens
However when trying manual conversion using this command:
otftotfm --verbose -e ec -fkern -fliga Ubuntu-R.ttf T1--Ubuntu--Regular
I got this error message:
warning: kpathsea: configuration file texmf.cnf not found in these directories: C:/Program Files (x86)/lcdf-typetools;C:/Program Files (x86)/lcdf-typetools/share/texmf-local/web2c;C:/Program Files (x86)/lcdf-typetools/share/texmf-dist/web2c;C:/Program Files (x86)/lcdf-typetools/share/texmf/web2c;C:/Program Files (x86)/lcdf-typetools/texmf-local/web2c;C:/Program Files (x86)/lcdf-typetools/texmf-dist/web2c;C:/Program Files (x86)/lcdf-typetools/texmf/web2c;C:/Program Files (x86);C:/Program Files (x86)/share/texmf-local/web2c;C:/Program Files (x86)/share/texmf-dist/web2c;C:/Program Files (x86)/share/texmf/web2c;C:/Program Files (x86)/texmf-local/web2c;C:/Program Files (x86)/texmf-dist/web2c;C:/Program Files (x86)/texmf/web2c;C://texmf-local/web2c;C:/;C://share/texmf-local/web2c;C://share/texmf-dist/web2c;C://share/texmf/web2c;C://texmf-local/web2c;C://texmf-dist/web2c;C://texmf/web2c. otftotfm: c:/usr/local/share/lcdf-typetools/glyphlist.txt: No such file or directory otftotfm: c:/usr/local/share/lcdf-typetools/texglyphlist.txt: No such file or directory otftotfm: encoding file ec.enc not found with kpathsea otftotfm: encoding file ec not found with kpathsea otftotfm: encoding 'ec' not found
Note: I am using MiKTeX 2.9 on Windows 10. The otftotfm was extracted from W32TEX pre-built binary lcdf-typetools-w32.tar, the BIN folders to program files and the SHARED folder to my local TEXMF . The location of local TEXMF according to:
kpsewhich -expand-var '$TEXMFHOME'
are in these location:
'{D:/USERS/YOSEDATA/Documents/texmf-koma-script-current,D:/USERS/YOSEDATA/Documents/LocalTEXmf}'
Do I have miss something ?
Or is it the otftotfm really not compatible with MiKTeX? Because it is seaching for texmf.cnf, which to my understanding are not use by MiKTeX.
On the other hand, is it possible to re-direct or configure otftotfm to look for its config which is in the local TEXMF ?
Any pointers will be highly appreciated.
.tfms in the relevant subdirectory of myLocalTeXMFby hand. – Bernard Dec 29 '19 at 11:10-aswitch. – Ulrike Fischer Dec 29 '19 at 11:40--encoding-directory=dir. – Ulrike Fischer Dec 29 '19 at 13:51kpsewhich ec.encwhere the file is and then use the correct path. – Ulrike Fischer Dec 29 '19 at 14:12