CartoType API
Public Member Functions | Public Attributes
CartoType::TFontMetrics Class Reference

#include <cartotype_typeface.h>

List of all members.

Public Member Functions

CT_IMPORT TFixed BaselineOffset (TTextBaseline aBaseline) const

Public Attributes

int32 iSize
int32 iAscent
int32 iDescent
int32 iXHeight
int32 iMaxAscent
int32 iMaxDescent

Detailed Description

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.


Member Function Documentation

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.


Member Data Documentation

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)


The documentation for this class was generated from the following files: