TypeMetric

This is used to reprecent text/font mesurements.

Members

Variables

ascent
double ascent;

The distance in pixels from the text baseline to the highest/upper grid coordinate used to place an outline point. Always a positive value.

bounds
SegmentInfo bounds;

This is an imaginary box that encloses all glyphs from the font, usually as tightly as possible.

descent
double descent;

The distance in pixels from the baseline to the lowest grid coordinate used to place an outline point. Always a negative value.

height
double height;

Text height in pixels.

max_advance
double max_advance;

The maximum horizontal advance (advance from the beginning of a character to the beginning of the next character) in pixels.

origin
PointInfo origin;

A virtual point, located on the baseline, used to locate glyphs.

pixels_per_em
PointInfo pixels_per_em;

Horizontal (x) and vertical (y) pixels per em.

underline_position
double underline_position;
underline_thickness
double underline_thickness;
width
double width;

Text width in pixels.

Meta