Normal
face is a struct from the freetype lib.face.bbox.yMin is negative and in order to get the correct max height I need to add yMax and yMin.From the freetype docs, it said that the bbox is the maximum enclosing of all characters in the font.The old code did not ever look at the bbox, only at height and ascender which seems was not the total a character can be when ascender and descender are taken into account. I had some fun with this: http://en.wikipedia.org/wiki/Typeface_anatomyand this: http://www.freetype.org/freetype2/documentation.html
face is a struct from the freetype lib.
face.bbox.yMin is negative and in order to get the correct max height I need to add yMax and yMin.
From the freetype docs, it said that the bbox is the maximum enclosing of all characters in the font.
The old code did not ever look at the bbox, only at height and ascender which seems was not the total a character can be when ascender and descender are taken into account.
I had some fun with this: http://en.wikipedia.org/wiki/Typeface_anatomy
and this: http://www.freetype.org/freetype2/documentation.html