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

Describes the font metrics of a text object. More...

#include <thorvg.h>

Public Attributes

float ascent
 Distance from the baseline to the top of the highest glyph (usually positive).
 
float descent
 Distance from the baseline to the bottom of the lowest glyph (usually negative, as in TTF).
 
float linegap
 Additional spacing recommended between lines (leading).
 
float advance
 The total vertical advance between lines of text: ascent - descent + linegap (i.e., ascent + |descent| + linegap when descent is negative).
 

Detailed Description

Describes the font metrics of a text object.

Provides the basic vertical layout metrics used for text rendering, such as ascent, descent, and line spacing (linegap).

See also
Text::metrics()
Note
Experimental API