Using UCG_FONT_MODE_SOLID writes a larger vertical area than can be deduced from getFontAscent and getFontDescent. Ideally, I would like to see new APIs like getFontElevation and getFontDepth that would return the offsets from the font baseline to the top and bottom of the written box, respectively.
In lieu of that, what is the proper technique to determine these values by accessing the font structures directly?
Using
UCG_FONT_MODE_SOLID
writes a larger vertical area than can be deduced fromgetFontAscent
andgetFontDescent
. Ideally, I would like to see new APIs likegetFontElevation
andgetFontDepth
that would return the offsets from the font baseline to the top and bottom of the written box, respectively.In lieu of that, what is the proper technique to determine these values by accessing the font structures directly?