[OS X TeX] Hoefler and Swashes question

Bruno Voisin bvoisin at mac.com
Fri Apr 20 06:18:29 EDT 2007


Le 20 avr. 07 à 11:18, Peter Dyballa a écrit :

> Am 20.04.2007 um 05:17 schrieb Joe Chan:
>
>> \DeclareFontFamily{U}{HoeflerText}{}
>> \DeclareFontShape{U}{HoeflerText}{m}{it}
>>         {<-> "Hoefler\space Text\space Italic:Smart\space Swashes=! 
>> Line\space Final\space Swashes,!Line\space Initial\space Swashes"}{}
>
> These are elements of NFSS2 (New Font Selection Scheme) and  
> therefore they do not work in XeLaTeX. Instead read the fontspec  
> documentation:
>
> 	texdoc fontspec

The original poster's instructions do work with XeLaTeX, that's the  
way things have to be done when fontspec isn't used.

For example, here's what I'd been using before I thought fontspec  
stable enough to start experimenting with it:

\DeclareFontFamily{U}{hoeftxt}{}
\DeclareFontShape{U}{hoeftxt}{m}{n}
   {<-> "Hoefler\space Text:mapping=tex-text;
           Number\space Case=Upper\space Case\space Numbers%;
%          Ligatures=Rare\space Ligatures,Diphthong\space Ligatures;
%          Character\space Alternates=Alternates
        "}{}
\DeclareFontShape{U}{hoeftxt}{m}{it}
   {<-> "Hoefler\space Text\space Italic:mapping=tex-text;
           Smart\space Swashes=!Line\space Final\space Swashes,
                               !Line\space Initial\space Swashes;
           Number\space Case=Uppercase\space Numbers%;
%          Ligatures=Rare\space Ligatures,Diphthongs;
%          Character\space Alternatives=Normal\space Vertical\space  
Position
        "}{}
\DeclareFontShape{U}{hoeftxt}{b}{n}
   {<-> "Hoefler\space Text\space Black:mapping=tex-text;
           Number\space Case=Diphthong\space Ligatures%;
%          Ligatures=Rare\space Ligatures,Diphthongs;
%          Character\space Alternatives=Alternates
        "}{}
\DeclareFontShape{U}{hoeftxt}{b}{it}
   {<-> "Hoefler\space Text\space Black\space Italic:mapping=tex-text;
           Smart\space Swashes=!Line\space Final\space Swashes,
                               !Line\space Initial\space Swashes;
           Number\space Case=Normal\space Vertical\space Position%;
%          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
        "}{}
\renewcommand{\encodingdefault}{U}
\renewcommand{\rmdefault}{hoeftxt}

Bruno
------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/





More information about the MacOSX-TeX mailing list