[XeTeX] Controlling glyph variations
Mark Dancer
ae1fric at yahoo.co.uk
Tue Oct 30 01:44:04 CET 2007
Hi,
I'm trying to produce a font sampler document, and I'm
having a problem limiting the glyphs used to just one
variation of a font. My problem is probably easiest to
explain by example:
\font\basefont="Zapfino:Stylistic Variants=No Change"
at 10 pt
\basefont{}The quick brown fox jumps over the lazy dog.
prints the phrase using the basic glyphs, while:
\font\varfont="Zapfino:Stylistic Variants=First Variant
Glyph Set" at 10 pt
\ varfont{}The quick brown fox jumps over the lazy dog.
uses the first set of glyph variants.
Then I try:
\newcount\nglyph
\newcount\glyf \newcount\step
\nglyph =\XeTeXcountglyphs\basefont
\noindent{\title Zapfino No Stylistic Variants contains
\number\nglyph\ glyphs}
\nobreak\medskip
\noindent
\loop \advance\glyf by 1
\ifnum\glyf<\nglyph
{\basefont\XeTeXglyph\glyf }
\repeat
\newcount\nglyph
\newcount\glyf \newcount\step
\nglyph =\XeTeXcountglyphs\varfont
\noindent{\title Zapfino First Variant Glyph Set
contains \number\nglyph\ glyphs}
\nobreak\medskip
\noindent
\loop \advance\glyf by 1
\ifnum\glyf<\nglyph
{\varfont\XeTeXglyph\glyf }
\repeat
with the expectation of getting lists of just the glyphs in
the base and first variant sets. What I get, however, is
the full set of glyphs in the font for both sets (for
Zapfino I get all 1447 glyphs).
How do I restrict Xetex to listing just the glyphs in a
particular variant set?
Thanks,
Mark.
___________________________________________________________
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com
More information about the XeTeX
mailing list