[XeTeX] Beginner's question - font for numbers

Andrew Moschou andmos at gmail.com
Fri Oct 9 13:43:26 CEST 2009


I think the best method would be to use character classes: Choose the new
font when moving from any character to a digit and return to the original
font when moving from a digit to any other character. But I don't know how
to do this properly, somebody will chime in soon...

Andrew

2009/10/9 George <ghassiotis at hotmail.com>

> Hello - is there a way to use a different font just for numbers, in a
> non-math text? I searched the archives, but I cannot find anything....
>
>
> Motivation: I am trying to write in Greek, using the "Times Ten Greek"
> font, which does not contain oldstyle numbers. These come with the
> "Times 10 Roman Small Caps  and Oldstyle  Figures", which does not
> support  Greek.  Is there a way to "borrow" the number glyphs from the
> latter [i.e., something like the SmallCapsFont={...} feature in
> fontspec]? Unfortunately, non-english speakers face similar problems
> often - they suddenly realize that small caps are absent from certain
> scripts, usually after the purchase....
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20091009/4dba30a2/attachment.html>


More information about the XeTeX mailing list