ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: oldstyle numbers
Date: Wed, 16 Sep 2009 12:21:24 +0200	[thread overview]
Message-ID: <84C03953-B07B-42FC-B5DF-2A2269C7B8E6@googlemail.com> (raw)
In-Reply-To: <4AB0B8F4.2080803@gmx.de>


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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2009-09-16 10:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-16 10:07 Arno Trautmann
2009-09-16 10:21 ` Wolfgang Schuster [this message]
2009-09-16 10:25   ` Arno Trautmann
2009-09-16 10:34     ` Wolfgang Schuster
2009-09-16 10:35       ` Arno Trautmann
2009-09-16 11:52   ` Matthijs Kooijman
     [not found] <8B93369C-9390-4C49-BE99-7C66CD113ED0@posteo.de>
2014-05-21  8:58 ` Fwd: Oldstyle numbers Werner Hintze
2014-05-21  9:06   ` Hans Hagen
2014-05-21  9:11     ` Werner Hintze

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=84C03953-B07B-42FC-B5DF-2A2269C7B8E6@googlemail.com \
    --to=schuster.wolfgang@googlemail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).