ThorVG v1.1
Loading...
Searching...
No Matches
GlyphMetrics

Describes the layout metrics of a glyph. More...

#include <thorvg.h>

Collaboration diagram for GlyphMetrics:

Public Attributes

float advance
 The advance distance along the baseline (inline) direction.
 
float bearing
 The bearing from the origin to the glyph’s visible bound along the inline-start direction.
 
Point min
 The minimum point of the glyph bounding box in local space.
 
Point max
 The maximum point of the glyph bounding box in local space.
 

Detailed Description

Describes the layout metrics of a glyph.

Provides the basic layout metrics used for positioning an individual glyph, including its advance along the baseline direction, bearing relative to the inline axis origin, and its bounding box in local glyph space.

The advance value represents the distance the pen position moves along the baseline (inline direction), regardless of whether the text is laid out horizontally or vertically.

The bounding box is defined in the glyph’s local coordinate space and is independent of any layout direction or transformation.

See also
Text::metrics()
Note
Experimental API