[XeTeX] XeTeXuseglyphmetrics

SUN Wenchang sunwch at hotmail.com
Wed May 27 15:20:05 CEST 2009



> I don't think that \XeTeXuseglyphmetrics is useful in this context.
> It only tells xetex to *use* the existing informations about height
> and depth (the bounding box), it doesn't generate or change them. 
> 
> I don't know anything about CJK so I can't offer a solution only
> some ideas:
> - change the font itself
> - Look if \XeTeXinterchartoks can be used

> - Use commands for the punctuation marks (e.g. by activating the
> chars) and then define them as you want (this can probably be done
> on a font level).

Yes, it is the way to solve this problem.
To do that (deleting redundant spaces around a punctuation glyph), we have to know the bbox.
 
I think a primitive like \XeTeXuseglyphmetrics is useful.  For example, with \XeTeXuseglyphmetrics=1, the spaces around a CJK glyph with be trimed, which is exact what I wanted.
Once we have such a primitive, it is easy to set punctuation glyphs, including margin kerning and more.
 
Best,
Wenchang 
 


_________________________________________________________________
邀請大家來參加派對吧!
http://www.microsoft.com/windows/windowslive/products/events.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20090527/0ec21cea/attachment.html>


More information about the XeTeX mailing list