class Freetype::GlyphMetrics
- Freetype::GlyphMetrics
- Reference
- Object
Overview
A structure used to model the metrics of a single glyph. The values are expressed in 26.6 fractional pixel format; if the flag FT_LOAD_NO_SCALE has been used while loading the glyph, values are expressed in font units instead.
Note
If not disabled with FT_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’ or ‘vertAdvance’; you have to manually adjust these values to account for the added width and height.
Defined in:
freetype/glyph_metrics.crConstructors
Instance Method Summary
-
#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.
Constructor Detail
Instance Method Detail
Advance height for vertical layout. Positive values mean the glyph has a positive advance downward.
Top side bearing for vertical layout. Larger positive values mean further below the vertical glyph origin.