freetypy.Glyph_Metrics¶
-
class
freetypy.Glyph_Metrics¶ A structure used to model the metrics of a single glyph.
Notes
If not disabled with
LOAD.NO_HINTING, the values represent dimensions of the hinted glyph (in case hinting is applicable).Stroking a glyph with an outside border does not increase
horiAdvanceorvertAdvance; you have to manually adjust these values to account for the added width and height.Attributes
heightThe glyph’s height. hori_advanceAdvance width for horizontal layout. hori_bearing_xLeft side bearing for horizontal layout. hori_bearing_yTop side bearing for horizontal layout. vert_advanceAdvance height for vertical layout. vert_bearing_xLeft side bearing for vertical layout. vert_bearing_yTop side bearing for vertical layout. widthThe glyph’s width.