[XeTeX] Upper Case numbers in Hoefler Text??
Bruno Voisin
bvoisin at mac.com
Mon Oct 4 10:08:39 CEST 2004
Le 4 oct. 04, à 01:54, christopher ciotti a écrit :
> I'm new to XeTeX (just a few hours) and I'm having some trouble
> putting together font def files. I wanted to make a few to represent
> the different flavors of Hoefler Text (they are based on an email from
> Bruno Voisin to the TeX on OSX mailing list). When I make a def for
> italic, proportional (or tabular) upper case numbers, I get the
> default old-style figures in everything but regular text (which works
> as expected). Can someone check this out for errors? Thanks in
> advance.
The problem is not with your declarations, but with Apple's shipping of
Hoefler Text: your names for the "Number Case" AAT feature are
consistent, but the ones Apple uses are completely irrational and
inconsistent. It's a bug which I think Jonathan Kew has reported to
Apple.
To get uppercase numbers, and other features, right, I had to open all
four Hoefler Text fonts (regular, black, italic and black italic) in
TextEdit, acces the Typography panel (Cmd-T then click on the scroll
wheel icon at the bottom left of the panel then Typography…), then
tediously find the names for each feature.
> %%%%%%%%%%%%%%
> \DeclareFontFamily{U}{hoeftxt}{}
> \DeclareFontShape{U}{hoeftxt}{m}{n} {<-> "Hoefler\space Text:
> Ligatures=Common\space Ligatures;
> Number\space Spacing=Proportional\space Numbers;
> Number\space Case=Upper\space Case\space Numbers;
> Character\space Alternates=Alternates"}{}
>
> \DeclareFontShape{U}{hoeftxt}{m}{it} {<-> "Hoefler\space Text\space
> Italic:
> Ligatures=Common\space Ligatures;
> Number\space Spacing=Proportional\space Number;
Missing "s" at "Number".
> Numbers\space Case=Upper\space Case\space Numbers;
Should be: "Number\space Case=Uppercase\space Numbers".
> Character\space Alternates=Alternates"}{}
Should be: "Character\space Alternatives=Normal\space Vertical\space
Position" (sic!).
~~
> \DeclareFontShape{U}{hoeftxt}{b}{n} {<-> "Hoefler\space Text\space
> Black:
> Number\space Spacing=Proportional\space Numbers;
> Number\space Case=Upper\space Case\space Numbers;
Should be: "Number\space Case=Diphthong\space Ligatures" (sic!).
> Character\space Alternates=Alternates"}{}
Should be: "Character\space Alternatives=Alternates".
~~
>
> \DeclareFontShape{U}{hoeftxt}{b}{it} {<-> "Hoefler\space Text\space
> Black\space Italic:
> Number\space Spacing=Proportional\space Numbers;
> Number\space Case=Upper\space Case\space Numbers;
Should be: "Number\space Case=Normal\space Vertical\space Position"
(sic!).
> Character\space Alternates=Alternates"}{}
Should be: "Character\space Alternatives=Lower\space Case\space
Numbers" (sic!).
~~
>
> \DeclareFontShape{U}{hoeftxt}{m}{sc} {<-> "Hoefler\space Text:
> Letter\space Case=Small\space Caps;
> Character\space Alternates=Alternates"}{}
>
> \DeclareFontShape{U}{hoeftxt}{b}{sc} {<-> "Hoefler\space Text\space
> Black:
> Letter\space Case=Small\space Caps;
> Character\space Alternates=Alternates"}{}
Should be: "Character\space Alternatives=Alternates".
~~
Sorry, my original post included (I think) the correct declarations,
but I didn't stress enough Apple's bugs and their fixes.
Bruno Voisin
More information about the XeTeX
mailing list