[pdftex] questions on adding truetype fonts

Feiyi Wang fwang2 at yahoo.com
Thu Jul 25 14:52:23 CEST 2002


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



More information about the pdftex mailing list