freetypy.Glyph_Metrics¶
-
class
freetypy.
Glyph_Metrics
¶ Models 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.-
__init__
()¶ x.__init__(...) initializes x; see help(type(x)) for signature
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. -