[NTG-context] XeTeX old style numerals

Mojca Miklavec mojca.miklavec.lists at gmail.com
Fri Sep 19 20:57:52 CEST 2008

On Fri, Sep 19, 2008 at 8:07 PM, Mohamed Bana wrote:
> Hi guys,
> Why doesn't this definition use the old style numerals that come with the font?
>  It seems to use the latin modern font when I try to use \os.  Small caps are
> working fine.
> I'd like all the numbers in the document to be typeset in old style numerals
> unless I tell it otherwise, btw how do I achieve the latter?

I didn't tell you that:


(the important setting is only "onum=yes")

The problem is that that's only a dirty trick that is not supposed to
work and might stop working in the future, so I would rather try not
to rely on it. A better interface for XeTeX typescripts (something
similar to fontspec) is missing heavily.


Concerning your first problem: I have tried patching Xsans definitions with


\definefontsynonym [DummyOldStyle]  [name:\typescripttwo]   [features=oldstyle]
%\definefontsynonym [DummyOldStyle]  [name:'\typescripttwo']
\definefontsynonym [OldStyle]       [DummyOldStyle]

\definetypeface[myface][rm][Xserif][Warnock Pro]
\setupbodyfont[myface, 11pt]

{\os 123456789}

but I have no idea why it fails.

kpathsea: Invalid fontname `name:Warnock', contains ':'
! Font \thedefinedfont=name:Warnock not loadable: Metric (TFM) file or installe
d font not found.
<to be read again>
<argument> name:Warnock P
\dotruefontname ... #1\endcsname *#2#3\fi \else #1
                                                  \ifx #2\empty \else *#2#3\...

\dotruefontname ... \??ff \fontclass #1\endcsname
                                                  \else \@EA \redotruefontna...

\dotruefontname ... \??ff \fontclass #1\endcsname
                                                  \else \@EA \redotruefontna...

\symbolicsizedfont ...ntname {\glyphfontfile {#3}}
                                                   at \currentfontbodyscale ...
l.32 {\os

The alternative fails with

kpathsea: Invalid fontname `name:Warnock Pro*oldstyle', contains ':'
! Font \thedefinedfont="name:Warnock Pro*oldstyle" at 11.0pt not loadable: Metr
ic (TFM) file or installed font not found.
<recently read> \scaledfont

\symbolicsizedfont ...ntfontbodyscale \scaledfont
l.32 {\os


More information about the ntg-context mailing list