font management simplified (was Re: [OS X TeX] Trump Mediaeval fonts_

Dalyoung haksan at mac.com
Sat Oct 2 03:55:24 CEST 2004


Dear all,

I tested font declaration for the Hoefler Text in XeLaTeX and got some 
errors at
  \section, \subsection, {\bf ...}, {\sl ...}.

%-------------- Sample file ----------------------
\documentclass[10pt]{article}

\DeclareFontFamily{U}{hoeftxt}{}
\DeclareFontShape{U}{hoeftxt}{m}{n}
   {<-> "Hoefler\space Text:
           Ligatures=Rare\space Ligatures,Diphthong\space Ligatures;
           Character\space Alternates=Alternates
        "}{}
\DeclareFontShape{U}{hoeftxt}{m}{it}
   {<-> "Hoefler\space Text\space Italic:
           Ligatures=Rare\space Ligatures,Diphthongs;
           Character\space Alternatives=Normal\space Vertical\space 
Position
        "}{}
\DeclareFontShape{U}{hoeftxt}{b}{n}
   {<-> "Hoefler\space Text\space Black:
           Ligatures=Rare\space Ligatures,Diphthongs;
           Character\space Alternatives=Alternates
       "}{}
\DeclareFontShape{U}{hoeftxt}{b}{it}
   {<-> "Hoefler\space Text\space Black\space Italic:
          Ligatures=Rare\space Ligatures,Diphthongs;
           Character\space Alternatives=Lower\space Case\space Numbers
        "}{}
\DeclareFontShape{U}{hoeftxt}{bx}{n}
   {<-> ssub * hoeftxt/b/n}{}
\DeclareFontShape{U}{hoeftxt}{bx}{it}
   {<-> ssub * hoeftxt/b/it}{}
\DeclareFontShape{U}{hoeftxt}{m}{sc}
   {<-> "Hoefler\space Text:
           Letter\space Case=Small\space Caps;
           Character\space Alternates=Alternates
        "}{}
\DeclareFontShape{U}{hoeftxt}{m}{sl}
   {<-> ssub * hoeftxt/m/it}{}

\renewcommand{\encodingdefault}{U}
\renewcommand{\rmdefault}{hoeftxt}

\title { Title of the Article}
\author{Author}
\date{}

\begin{document}
\maketitle
\section{Section }
\subsection{ Subsection }

  This is a regular font of Hoefler Text.
\bigskip
{\it It is an Italic fonts.}
\bigskip
{\sl It is a slanted fonts.}
   \bigskip
{\bf It is a bold face.}

\end{document}
%------------ errors ----------------------
1. ! Font \U/hoeftxt/b/n/14.4=Hoefler not loadable: Metric (TFM) file 
or ATSUI fon
t not found.
<to be read again>
                    T
l.47 \section{Section }

and similar error at \subsection

2. ! Font \U/hoeftxt/b/n/10=Hoefler not loadable: Metric (TFM) file or 
ATSUI font
not found.
<to be read again>
                    T
l.54 {\bf
           It is a slanted fonts.}

3. ! Font \U/hoeftxt/m/it/10=Hoefler not loadable: Metric (TFM) file or 
ATSUI font
  not found.
<to be read again>
                    T
l.56 {\sl
           It is a bold face.}
%-----------------------------------------

When I tested the same text using the simple Helvetica font 
declaration, no error occurred.

\DeclareFontFamily{U}{helvetica}{}
\DeclareFontShape{U}{helvetica}{m}{n}%
      {<-> "\MyFont"}{}
\DeclareFontShape{U}{helvetica}{m}{it}%
      {<-> "Helvetica\space Neue\space Italic"}{}
\DeclareFontShape{U}{helvetica}{m}{sl}%
      {<-> "Helvetica\space Neue\space Italic"}{}
\DeclareFontShape{U}{helvetica}{m}{sc}%
      {<-> "Helvetica\space Neue"}{}
\DeclareFontShape{U}{helvetica}{bx}{n}%
      {<-> "Helvetica\space Neue\space Bold"}{}
\DeclareFontShape{U}{helvetica}{b}{n}%
      {<-> "Helvetica\space Neue\space Bold"}{}
\DeclareFontShape{U}{helvetica}{bx}{it}%
      {<-> "Helvetica\space Neue\space Italic"}{}
\DeclareFontShape{U}{helvetica}{b}{it}%
      {<-> "Helvetica\space Neue\space Italic"}{}
%----------------------------------------------------

Since I don't know about the font handling well, I couldn't see what 
are the differences.
What's wrong in my test file?

Thank you.

Dalyoung--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>





More information about the macostex-archives mailing list