[XeTeX] Access to the bounding box of a glyph
sunwch at hotmail.com
Mon Jul 28 15:41:50 CEST 2008
Is it possible to get the bounding box of a glyph? If not, is it possible to add a XeTeX primitive to do this?
This information is very useful when typesetting Chinese (maybe also Japanese and Korean) full-width punctuation. For example, if we know the bounding box of the period mark is 243 523 558 742,then we can replace the period mark as
[period mark]\vrule width -0.342em depth \z@ height \z@\hskip 0.342em The "\vrule...\hskip..." structure can gobble the blank space right to the glyph when it appears at the end of a line. As a result, we can align the line boundary.
用部落格分享照片、影音、趣味小工具和最愛清單，盡情秀出你自己 — Windows Live Spaces
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the XeTeX