[pdftex] questions on adding truetype fonts

Jens-Uwe Morawski morawski at gmx.net
Fri Jul 26 11:08:41 CEST 2002


On Thu, 25 Jul 2002 14:29:50 -0700 (PDT)
Feiyi Wang <fwang2 at yahoo.com> wrote:

> Just to add another way I tried:
> 
> \usepackage[T1]{fontenc}
> \renewcommand{\familydefault}{xyz}
> 
> this way, default fonts did changes, but when I used
> \textit{}, it would't pick up the font description there.
> Example: pdflatex gives:
> 
> Warning: Font shape `T1/xyz/m/xyzi' undefined

Do you have re-defined \itdefault to "xyzi"?

use
%===begin t1xyz.fd====
\ProvidesFile{t1xyz.fd}[my private xyz font]

\DeclareFontFamily{T1}{xyz}{}

\DeclareFontShape{T1}{xyz}{m}{n}{
   <-> recxyz
}{}

\DeclareFontShape{T1}{xyz}{m}{it}{
   <-> recxyzi
}{}

\DeclareFontShape{T1}{xyz}{b}{n}{
   <-> recxyzb
}{}
\DeclareFontShape{T1}{xyz}{m}{sl}{<->ssub * xyz/m/it}{}
\DeclareFontShape{T1}{xyz}{bx}{n}{<->ssub * xyz/b/n}{}
%===end t1xyz.fd====

then *only* re-define \rmdefault
\renewcommand{\rmdefault}{xyz}
and it should work.

Why don't you use fontinst? I think you would like to
read fntguide.pdf.

Jens



More information about the pdftex mailing list