[pdftex] questions on adding truetype fonts
Feiyi Wang
fwang2 at yahoo.com
Thu Jul 25 15:29:50 CEST 2002
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
I've defined t1xyzi.fd as:
\ProvidesFile{t1xyzi.fd}[xyzi]
\DeclareFontFamily{T1}{xyzi}{}
\DeclareFontShape{T1}{xyzi}{m}{n}{<-> recxyzi}{}
\endinput
FY
--- Feiyi Wang <fwang2 at yahoo.com> wrote:
> Hi,
>
> I have a question on setting up truetype fonts as
> default.
> Suppose I have xyz.ttf, xyzi.ttf, xyzb.ttf, which
> represent
> normal, italic, and bold fonts, and I have generated
> "recxyz", "recxyzi", "recxyzb" and corresponding font
> description.
>
>
\newcommand{\xyz}{\fontencoding{T1}\usefont{T1}{xyz}{m}{n}}
>
\newcommand{\xyzi}{\fontencoding{T1}\usefont{T1}{xyzi}{m}{n}}
>
\newcommand{\xyzb}{\fontencoding{T1}\usefont{T1}{xyzb}{m}{n}}
>
> and if I use \xyz{some text}, the generated pdf show new
> font correctly. However, I didn't succeed on making xyz
> the
> default font. (I tried \def\rm{\xyz}, also
> \renewcommand{\rmfamily}{\xyz}}, neither works.
>
> Appreciate your help.
>
> FY
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> http://health.yahoo.com
> _______________________________________________
> pdftex mailing list
> pdftex at tug.org
> http://tug.org/mailman/listinfo/pdftex
__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
More information about the pdftex
mailing list