[texhax] TrueType Font for Latex without success

rechtsteiner at bgki.net rechtsteiner at bgki.net
Wed May 13 18:32:39 CEST 2009


Dear listmembers,

I have spent my day on trying to figure out how to make latex use a
commercial TTF (Strada). Of course I read the guideline available at
http://www.radamir.com/tex/ttf-tex.htm. But it did not work for me.
When generating the dvi or pdf, I get the warning

"LaTeX Font Warning: Font shape T1/str/m/n undefined".

str is the name I have chosen for the font.
My .fd look like that:

\ProvidesFile{t1str.fd}[Strada Family]

\DeclareFontFamily{T1}{str}{}

\DeclareFontShape{T1}{str}{b}{n}{<->ecstfbd}{}
\DeclareFontShape{T1}{str}{b}{it}{<-> ecstfbdit}{}

\DeclareFontShape{T1}{str}{m}{n}{<-> ecstfrg}{}
\DeclareFontShape{T1}{str}{m}{it}{<-> ecstfrgit}{}

\DeclareFontShape{T1}{str}{bx}{n}{<->ssub * str/b/n}{}
\DeclareFontShape{T1}{str}{bx}{it}{<->ssub * str/b/it}{}

\endinput


The .tfm and .vf files are named as follows:
(r)ecstfbd for StradaTF Bold
(r)ecstflt for StradaTF Light
(r)ecstfrg for StradaTF Regular
(r)ecstfsbd for StradaTF Semi-Bold
and 4 files (r)ec...it for italic (.vf and .tfm), so there are 8 .vf and
16 .tfm files. I have used T1-WGL4.enc and added the lines

recstflt   STfLt___.ttf Encoding=T1-WGL4.enc
recstfrg   STfRg___.ttf Encoding=T1-WGL4.enc
recstfsbd   STfSBd__.ttf Encoding=T1-WGL4.enc
recstfbd   STfBd___.ttf Encoding=T1-WGL4.enc
recstfltit   STfLtIt_.ttf Encoding=T1-WGL4.enc
recstfsbdit   STfSBdIt.ttf Encoding=T1-WGL4.enc
recstfbdit   STfBdIt_.ttf Encoding=T1-WGL4.enc
recstfrgit   STfRgIt_.ttf Encoding=T1-WGL4.enc

to the ttfonts.map.

tex testfont
ends up with a .dvi that I have converted to pdf to prove the result. It
works fine. But when performing a test in LaTeX, things look different. I
tried this with a simple document:

\documentclass{article}
\begin{document}
\usefont{T1}{str}{m}{n}
Hello, I hope being typeset in StradaTF Regular
\end{document}

LaTeX then warns about the undefined font shape and replaces it with
T1/cmr/m/n.

Can anyone out there please tell me what is wrong here or give me some hint?
Thanks in advance.

Ah, sorry: ProTeXt-2.2 (MikTeX 2.7 + TeXnicCenter) on XP SP3

cheers,

josuah




More information about the texhax mailing list