Hi, I’m new to ConTeXt and try to compile a document using XeTeX. Loading an otf font works fine, but I don’t get it to use oldstyle numbers. google and contextgarden did give me some hints, but I didn’t get it working. I tried: \starttext \definetypeface[normalfont][rm][Xserif][Arno Pro] \stoptext and several versions of things like [features=oldstyle], [onum=true], \definefontfeature[mine] with oldstyle etc. but nothing worked. So what am I doing wrong? Is there a simple way for oldstyle numbers? (I want them in the whole document, so I prefer a simple, global solution.) cheers, Arno
Am 16.09.2009 um 12:07 schrieb Arno Trautmann:
Hi,
I’m new to ConTeXt and try to compile a document using XeTeX. Loading an otf font works fine, but I don’t get it to use oldstyle numbers. google and contextgarden did give me some hints, but I didn’t get it working. I tried:
\starttext \definetypeface[normalfont][rm][Xserif][Arno Pro] \stoptext
and several versions of things like [features=oldstyle], [onum=true], \definefontfeature[mine] with oldstyle etc. but nothing worked.
So what am I doing wrong? Is there a simple way for oldstyle numbers? (I want them in the whole document, so I prefer a simple, global solution.)
\definefontfeature[default][default][onum=yes] % when this did not work (because your context is too old) use: % \definefontfeature[default] [liga=yes,kern=yes,tlig=yes,trep=yes,onum=yes] \definetypeface[mainface][rm][Xserif][Arno Pro] \setupodyfont[mainface] \starttext 0123456789 \stoptext Wolfgang
Wolfgang Schuster wrote:
Am 16.09.2009 um 12:07 schrieb Arno Trautmann:
Hi,
I’m new to ConTeXt and try to compile a document using XeTeX. Loading an otf font works fine, but I don’t get it to use oldstyle numbers. google and contextgarden did give me some hints, but I didn’t get it working. I tried:
\starttext \definetypeface[normalfont][rm][Xserif][Arno Pro] \stoptext
and several versions of things like [features=oldstyle], [onum=true], \definefontfeature[mine] with oldstyle etc. but nothing worked.
So what am I doing wrong? Is there a simple way for oldstyle numbers? (I want them in the whole document, so I prefer a simple, global solution.)
\definefontfeature[default][default][onum=yes]
\definetypeface[mainface][rm][Xserif][Arno Pro]
\setupodyfont[mainface]
\starttext 0123456789 \stoptext
Thank you very much, that works fine! Just for future questions: Where could I have found this? (I prefer reading documentation than wasting people’s time by asking …) cheers, Arno
Am 16.09.2009 um 12:25 schrieb Arno Trautmann:
Just for future questions: Where could I have found this? (I prefer reading documentation than wasting people’s time by asking …)
- http://context.aanhet.net/svn/contextman/context-reference/en/co-typography.... - http://context.aanhet.net/svn/contextman/context-reference/en/co-fonts.pdf Wolfgang
Wolfgang Schuster wrote:
Am 16.09.2009 um 12:25 schrieb Arno Trautmann:
Just for future questions: Where could I have found this? (I prefer reading documentation than wasting people’s time by asking …)
- http://context.aanhet.net/svn/contextman/context-reference/en/co-typography....
- http://context.aanhet.net/svn/contextman/context-reference/en/co-fonts.pdf
Thanks again, that will help me a lot! Arno
participants (3)
-
Arno Trautmann
-
Matthijs Kooijman
-
Wolfgang Schuster