On Wednesday 27 February 2002 00:53, Hans Hagen wrote:
> At 06:36 PM 2/26/2002 +0100, Frans Goddijn wrote:
> > ...
>
> Remind me that i provide you a better solution for this, something:
>
> \definefontsynonym [OldStyleSerif]       [....]
> \definefontsynonym [OldStyleSerifItalic] [....]
> \define....
>
> \def\oldstylenumerals#1{{\getglyph{OldStyle}{#1}}}
>
> will give you a cleaner interface to this as well automatically adapt
> itself to the styles.
>
> Some day i will buy a couple of those fonts and give them a try

Is this feature already supposed to work somehow?  I tried the following

\starttypescript [serif] [...] [name]
  \definefontsynonym [Serif]              [...]
  \definefontsynonym [SerifBold]        [...]
   ...
  \definefontsynonym [OldStyleSerif]            [..]
  \definefontsynonym [OldStyleSerifBold]       [...]
   ...
\stoptypescript

While experimenting with this, I made the experience that
 
\def\oldstylenumerals#1{{\getglyph{OldStyle}{#1}}}

does not lead to any oldstyle numbers, whereas 

\def\oldstylenumerals#1{{\getglyph{\fontclass OldStyle}{#1}}}

does. The results seem ok. \oldstylenumerals adpts to the font family and 
shape. Does this mean that I am on the right track??

Moreover, I discovered a pitfall (bug?). The oldstyle numerals I get this way 
have the wrong size, if the typeface has been defined using the 
rscale=<number>  feature.  In other words, my numbers aren't "rscaled."
What is needed to circumvent this?

Oliver

Reply via email to