Re: [XeTeX] Oldstyle figures in seperate file
Hello, Probably I mis-explained my objective... > I'd use another font instance for the small caps and the old-style > figures The point is that I already _have_ the oldstyle figures in another font file. And I _don't_ want _another_ font instance just for oldstyle numbers. > and use this font to set the small caps and the old-style > figures with. As in: > > This text is set in the main font, which stems from the year > \OSF{194711}. My point was that I want to _avoid_ having to type extra \foo{}s around all numbers. Again: - Oldstyle numbers are in a seperate font file - I want to use them just "as if" they were available through \setmainfont[..., Numbers={Proportional,OldStyle}]{foo} Is there any way to do this with XeTeX? If so, how? TIA, Sincerely, Wolfgang -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Oldstyle figures in seperate file
I think this topic has been discussed before, and at the time, there was a suggestion of using the interchartoks mechanism, and so the ucharclasses package might work for you. BUT, and I might be remembering wrong, I think it was thought to be a bad idea to do this with numbers. But if you're feeling adventurous, you can try the below: You can edit the ucharclasses sty file, and hijack one of the unicode class entries (found at lines 696-877) to reflect the unicode range you want (decimal 48-57), so let's say you have: \newcommand{\@loadNumberForms}{\@defineUnicodeClass{\NumberFormsClass}{8528}{8591}} You want to change this to: \newcommand{\@loadNumberForms}{\@defineUnicodeClass{\NumberFormsClass}{48}{57}} And then you put this in your preamble (I made up the font names): \usepackage{fontspec} \usepackage[NumberForms]{ucharclasses} \setDefaultTransitions{\fontspec{Times New Roman}}{} \setTransitionTo{NumberForms}{\fontspec{Times New Roman Expert}} And... it should work. Or it might make xelatex very unhappy. One of the two. Hope this helps, Andy -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Oldstyle figures in seperate file
Wolfgang, Have a look at the fontspec documentation where it is explained how to load different features from different fonts. Best, J -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Oldstyle figures in seperate file
Am 05.05.2011 um 21:22 schrieb William Adams: Make a virtual font. This would work with pdfTeX but not with XeTeX, which does not understand this concept of 7-bit or 8-bit fonts with real crazy encodings. I'd use another font instance for the small caps and the old-style figures and use this font to set the small caps and the old-style figures with. As in: This text is set in the main font, which stems from the year \OSF{194711}. This way chosen font variants (bold, italic, bold-italic) would be applied to the small caps and the old-style figures as well. This would work when the OSF font files encode the small caps where the normal letters are and the old style figures where the digits are. Otherwise it can become a bit complicated, with two new font instances: one, which activates the small caps and one, which activates the old style figures; and then having \OSF{194711} and also \SC{Small Caps}. -- Mit friedvollen Grüßen Pete <\ _\ O _ |o \ _\\_/-\=' _(_)|-(_) (_)___ -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Oldstyle figures in seperate file
On May 5, 2011, at 3:16 PM, Wolfgang Keller wrote: > if the oldstyle figures are provided (together with the small caps) in > a seperate font file (this is a truetype font), how can I tell XeTeX to > use these for all (roman) numbers? > > Or do I have to format all my numbers explicitly as small caps to get > the oldstyle figures? Make a virtual font. See the fontinst documentation for more details as well as Philipp Lehman's _The Font Installation Guide_: http://www.tex.ac.uk/tex-archive/info/Type1fonts/fontinstallationguide/fontinstallationguide.pdf and Alan Hoenig's _TeX Unbound_ William -- William Adams senior graphic designer Fry Communications Sphinx of black quartz, judge my vow. -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
[XeTeX] Oldstyle figures in seperate file
Hello, if the oldstyle figures are provided (together with the small caps) in a seperate font file (this is a truetype font), how can I tell XeTeX to use these for all (roman) numbers? Or do I have to format all my numbers explicitly as small caps to get the oldstyle figures? TIA, Sincerely, Wolfgang -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex