<div>Thanks! </div> <div> </div> <div>The "ink box" could be the one I am looking for. I want to trim off the spaces around a punctuation char.</div> <div> </div> <div>Best,</div> <div>Wenchang<BR><BR><B><I>Will Robertson <wspr81@gmail.com></I></B> дµÀ£º</div> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">On 03/06/2008, at 10:47 AM, Wenchang Sun wrote:<BR><BR>> Is there a macro to get the bounding box of a char?<BR>> I think it could be easy for XeTeX to do that because XeTeX know the <BR>> font metric.<BR><BR>You can get the bounding box but not the "ink box". In LaTeX terms, <BR>it's something like:<BR><BR>\newlength\lengtha<BR>\newlength\lengthb<BR>\newlength\lengthc<BR>\settowidth\lengtha{a}<BR>\settoheight\lengthb{a}<BR>\settodepth\lengthc{a}<BR><BR>The calc package also provides the \lengthof{} (etc.) macros when <BR>calculating lengths.<BR><BR>Hope this helps,<BR>Will<BR><BR>P.S.
Please don't reply to a previous message to the list with a new <BR>subject to start a new thread; it messes up threading of the previous <BR>messages and makes it harder to find things :)_______________________________________________<BR>XeTeX mailing list<BR>postmaster@tug.org<BR>http://tug.org/mailman/listinfo/xetex<BR></BLOCKQUOTE><BR><p> 
<hr size=1><a href="http://cn.mail.yahoo.com/"> ÑÅ»¢ÓÊÏ䣬ÄúµÄÖÕÉúÓÊÏ䣡</a>