[metapost] btex..etex debugging

Hans Hagen pragma at wxs.nl
Wed Mar 13 00:18:24 CET 2013


On 3/12/2013 10:41 PM, Stefan Witzel wrote:
> Hi,
>
> thanks Taco and Hans for the quick replies!
>
> 2013/3/12 Hans Hagen <pragma at wxs.nl>:
>> The bbox depends on the ht/dp of characters and lines and often the
>> character boundingbox is not tight (and when you use type one fonts and
>> traditional tex characters this is even more true due to limitation s of the
>> machinery).
>
> In my case it's actually very strange: the text exceeds the bounding
> box by an apparently fixed amount to the left. For example if I do
>
> draw(btex this is a test etex)
> draw(bbox(btex this is a test etex))
>
> the "th" wil stick out of the box. But hopefully the debugging will
> bring clarification (I'll try tomorrow).

ah .. youre not usinmg the boundingbox at all, but bbox which adds a 
margin of 1 pt by default (bbmargin or so)

just look at the attached:

page 1: boundingbox currentpicture overlaid
page 2: bbox currentpicture overlaid
page 3: both overlaid

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: oeps.pdf
Type: application/pdf
Size: 6343 bytes
Desc: not available
URL: <http://tug.org/pipermail/metapost/attachments/20130313/f75f8b62/attachment.pdf>


More information about the metapost mailing list