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
horiAdvance
orvertAdvance
; you have to manually adjust these values to account for the added width and height.Attributes
height
The glyph’s height. hori_advance
Advance width for horizontal layout. hori_bearing_x
Left side bearing for horizontal layout. hori_bearing_y
Top side bearing for horizontal layout. vert_advance
Advance height for vertical layout. vert_bearing_x
Left side bearing for vertical layout. vert_bearing_y
Top side bearing for vertical layout. width
The glyph’s width.