Menu

#1 Bounding box can be wrong

open
nobody
None
5
2012-06-08
2012-06-08
Peter Reid
No

This hardly counts as a bug, but I was using your code to read a TTF and write it back out, and the bounding boxes were coming out wrong. It turns out that there was a reference to TTFTable_glyfSimple's contours that was not wrapped in getContours(), so was being used empty. This doesn't normally cause a problem because the drawing code calls getContours() and fills it properly. Replacing contours with getContours() on line 302 of TTF_glyfSimple.java will possibly save someone else some confusion.

Discussion


Log in to post a comment.