[XeTeX] Re: [MacTeX] XeTeX 0.4 available

Ross Moore ross at ics.mq.edu.au
Wed Apr 21 02:27:26 CEST 2004


Hi Bruce,

On 21/04/2004, at 8:46 AM, Bruce D'Arcus wrote:

>
> I've two questions:
>
> First is, how would one use these fonts with LaTeX?
>

We had this discussion last week.

It led to coding such as the following:

%
% this part can be used in Plain or LaTeX
%
{\catcode`\"=11 \obeyspaces%
    \gdef\Hoefl#1{"Hoefler Text#1"}%
    \gdef\ItalicShape{ Italic}%
    \gdef\BoldFace{ Black}%
    \gdef\SmallCaps{:Letter Case=Small Caps}%
}%

% this part follows established LaTeX syntax
% but using the above part to get the font string
%
\DeclareFontFamily{U}{hoefl}{}
\DeclareFontShape{U}{hoefl}{m}{n}{<-> \Hoefl{}}{}
\DeclareFontShape{U}{hoefl}{m}{it}{<-> \Hoefl{\ItalicShape}}{}
\DeclareFontShape{U}{hoefl}{bx}{n}{<-> \Hoefl{\BoldFace}}{}
\DeclareFontShape{U}{hoefl}{b}{n}{<-> ssub * hoefl/bx/n}{}
\DeclareFontShape{U}{hoefl}{bx}{it}{<-> \Hoefl{\BoldFace\ItalicShape}}{}
\DeclareFontShape{U}{hoefl}{b}{it}{<-> ssub * hoefl/bx/it}{}
\DeclareFontShape{U}{hoefl}{m}{sc}{<-> \Hoefl{\SmallCaps}}{}
\renewcommand{\encodingdefault}{U}
\renewcommand{\rmdefault}{hoefl}




To fit with the way LaTeX sets up the document font for all
the usual styles and faces, then the above coding should
probably be broken up, to appear within several different files;
e.g.

1.  \usepackage{aatfonts}

with contents such as:

\renewcommand{\encodingdefault}{U}
{\obeyspaces%
    \gdef\ItalicShape{ Italic}%
    \gdef\BoldFace{ Black}%
    \gdef\SmallCaps{:Letter Case=Small Caps}%
   ...
   ... further stylistic declarations ...
   ...
}%



2.  \usepackage{hoefler}

with contents such as:

\typeout{Loading definitions to use "Hoefler Text" font,
  via the macro \string\Hoefl{...} with style parameters. }
\RequirePackage{aatfonts}
{\catcode`\"=11 \obeyspaces%
    \gdef\Hoefl#1{"Hoefler Text#1"}%
}
\renewcommand{\encodingdefault}{U}
\renewcommand{\rmdefault}{hoefl}


Note that this automatically loads  aatfonts.sty
if that has not been read already.


3.  font declarations in   Uhoefl.fd

with contents such as:

\DeclareFontFamily{U}{hoefl}{}
\DeclareFontShape{U}{hoefl}{m}{n}{<-> \Hoefl{}}{}
\DeclareFontShape{U}{hoefl}{m}{it}{<-> \Hoefl{\ItalicShape}}{}
\DeclareFontShape{U}{hoefl}{bx}{n}{<-> \Hoefl{\BoldFace}}{}
\DeclareFontShape{U}{hoefl}{b}{n}{<-> ssub * hoefl/bx/n}{}
\DeclareFontShape{U}{hoefl}{bx}{it}{<-> \Hoefl{\BoldFace\ItalicShape}}{}
\DeclareFontShape{U}{hoefl}{b}{it}{<-> ssub * hoefl/bx/it}{}
\DeclareFontShape{U}{hoefl}{m}{sc}{<-> \Hoefl{\SmallCaps}}{}



This way your document preamble could use simple declarations such as:

\usepackage{hoefler}
\usepackage{lucgrand}
\font\mybold=\Hoefl{\BoldFace} at 18pt


to get a document font corresponding to the last package loaded,
yet be able to make easy declarations of other "spot" fonts,
for special usage (at specific sizes) within the document body.

TeX will only load those fonts at sizes that are *actually used*
in the document, since the .fd file is only read when first required.
That is, in the above 3-liner,  Uhoefl.fd  does *not* get read,
but the \Hoefl macro does get defined, for use with the spot font.



Furthermore, this structure is sufficiently simple that everyone
on this list can create such files for the fonts that they use.

The  aatfonts.sty  file should collect definitions for the styles
that we all encounter.
Then with a suitably mature collection of definitions, packages
and .fd  files, we present this to the LaTeX team to include
in their next update.



> Second, what's the deal with the bug with variations on 10.3.3?  Is 
> this an Apple problem?  In any case, is it likely to be fixed sometime 
> soon?

Good question. I'd guess that it is Apple's problem.

With a good font-mechanism in place, such as above,
we will be in a position to collect many examples which fail,
and then present such evidence to Apple.
The more examples we have, the more likely that they will act
quickly.


>
> Finally, an observation: it's a shame to lose pdftex's margin-kerning, 
> and that -- despite the fact that AAT supports such functionality -- 
> none of Apple's font actually provide it.

Interesting question for Jonathan.



All the best,

	Ross


>
> Bruce
>
> _______________________________________________
> XeTeX mailing list
> postmaster at tug.org
> http://tug.org/mailman/listinfo/xetex
>
------------------------------------------------------------------------
Ross Moore                                         ross at maths.mq.edu.au
Mathematics Department                             office: E7A-419
Macquarie University                               tel: +61 +2 9850 8955
Sydney, Australia                                  fax: +61 +2 9850 8114
------------------------------------------------------------------------



More information about the XeTeX mailing list