[XeTeX] Access to the bounding box of a glyph

SUN Wenchang sunwch at hotmail.com
Mon Jul 28 15:41:50 CEST 2008


Dear All,
 
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.
 
Best,
Wenchang
_________________________________________________________________
用部落格分享照片、影音、趣味小工具和最愛清單,盡情秀出你自己 — Windows Live Spaces
http://spaces.live.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/xetex/attachments/20080728/f0d8f217/attachment.html 


More information about the XeTeX mailing list