|
CartoType API
|
#include <cartotype_typeface.h>
Public Member Functions | |
| CT_IMPORT TFixed | BaselineOffset (TTextBaseline aBaseline) const |
Public Attributes | |
| int32 | iSize |
| int32 | iAscent |
| int32 | iDescent |
| int32 | iXHeight |
| int32 | iMaxAscent |
| int32 | iMaxDescent |
The metrics of a font: that is a typeface rendered using a certain instance. Metrics such as ascent are in pixels relative to the baseline, with y increasing downwards.
| CT_EXPORT TFixed TFontMetrics::BaselineOffset | ( | TTextBaseline | aBaseline | ) | const |
Return the vertical offset in pixels applied to the baseline for this set of font metrics and the specified baseline type.
Offset of top of Latin capital H (U+0048) from baseline in pixels (normally negative)
Offset of bottom of Latin lowercase p (U+0070) from baseline in pixels (normally positive)
Maximum offset of top of any character from baseline in pixels (normally negative)
Maximum offset of bottom of any character from baseline in pixels (normally positive)
Design size in pixels per em.
Offset of top of Latin lowercase x (U+0078) from baseline in pixels (normally negative)
1.7.5.1