xtim
Thursday, March 26, 2009
 
Bounds line up
Woooooooooooohoooooooooo!

The Font object is now passing the font's bounding box back to the text processor. The text processor applies the current text transform and lines up the glyph's origin with the current text position before passing that transformed box into our TextBlock system. The boxes line up!

I had to fix another bug about the interpretation of offsets in the TJ operator - the offsets weren't getting transformed by the current text matrix so the spacing wandered out of sync.

I'm now fairly confident that the text processor knows


  1. Which characters are on the page, and

  2. Where each one is.



Funny things are happening though when the TextBlock system tries to guess where to insert spaces based on character position. That's the next thing to fix.

T

Labels: ,


Comments: Post a Comment

<< Home

Powered by Blogger