[texhax] Installing new TTF fonts:problems
vittorio
vdemart1 at tin.it
Wed Jun 7 21:49:28 CEST 2006
I have been given some proprietary fttf fonts by my company to be installed
and used under windows.
I would like to install these Helvetica neue ttf fonts under freebsd 6.1 to be
used with latex, mainly with PDFlatex (Version 3.141592 (Web2C 7.5.4)).
I have found many, perhaps too many and somewhat misleading, articles in the
net and under /usr/local/share/texmf-dist directories such as fontinst with
the relating manual and fonts/fontname.
In spite of my readings it seems that many important files are missing in
the "complete" tetex under fbsd.
For instance I cannot find the T1-WGL4.enc file to be used with ttf2afm; I
can't find the ttf2tfm & ttf2pk commands. Besides I have many a perplexity on
how to use the fontinst procedure tailored in this (wrong) way, after having
produce the afm files with the T1-WGL4.enc file of miktex:
% basicex.tex
%
\input fontinst.sty
\transformfont{phnm8r}{\reencodefont{8r}{\fromafm{phnm8a}}}
\transformfont{phnb8r}{\reencodefont{8r}{\fromafm{phnb8a}}}
\transformfont{phnri8r}{\reencodefont{8r}{\fromafm{phnri8a}}}
\transformfont{phnbi8r}{\reencodefont{8r}{\fromafm{phnbi8a}}}
\installfonts
\installfamily{T1}{phn}{\hyphenchar\font=-1}
\installrawfont {phnm8r}{phnm8r,latin}{t1}{T1}{phn}{m}{n}{}
\installrawfont {phnb8r}{phnb8r,latin}{t1}{T1}{phn}{b}{n}{}
\installrawfont {phnri8r}{phnri8r,latin}{t1}{T1}{phn}{m}{it}{}
\installrawfont {phnbi8r}{phnbi8r,latin}{t1}{T1}{phn}{b}{it}{}
\endinstallfonts
\bye
===============================================================
After installing everything and issuing
a
\fontfamily{phn}\fontseries{m}\fontshape{n}\fontsize{12}{15}
\selectfont
in a test tex file I get an unreadable pdf file from pdflatex with the
following diagnostic
............................Warning: pdflatex (file phnm8r): Font phnm8r at
720 not found
{/usr/local/share/texmf-dist/fonts/enc/dvips/psnfss/8r.enc}</usr/local/share/te
xmf-dist/fonts/type1/urw/helvetic/uhvb8a.pfb></usr/local/share/texmf-dist/fonts
/type1/urw/helvetic/uhvro8a.pfb>
</var/tmp/texfonts/pk/ljfour/jknappen/ec/ecbx1
095.600pk></usr/local/share/texmf-dist/fonts/type1/urw/helvetic/uhvr8a.pfb>
And latex test.tex gives
.................................LaTeX Font Info: Try loading font
information for T1+phn on input line 51.
(/usr/local/share/texmf-local/tex/latex/hvneue/t1phn.fd
File: t1phn.fd 2006/06/07 Fontinst v1.929 font definitions for T1/phn.
)
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <12> on input line 57.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <8> on input line 57.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <6> on input line 57.
[1
and produces a dvi file with unreadable lines.
Please help suggesting the "latest" correct procedure
Vittorio
More information about the texhax
mailing list