wxArt2D
|
Public Member Functions | |
virtual a2dFontType | GetType (void) const |
a2dFontRefData (double size) | |
a2dFontRefData () | |
constructor | |
a2dFontRefData (const a2dFontRefData &other) | |
bool | Ok () |
virtual void | SetSize (double size) |
double | GetSize () const |
double | GetDescent () const |
double | GetLineHeight () const |
virtual double | GetKerning (wxChar c1, wxChar c2) const |
Get kerning space between two characters. More... | |
virtual double | GetWidth (wxChar c) const =0 |
Get width of a single character. | |
virtual bool | GetVpath (wxChar c, a2dVpath &vpath, const a2dAffineMatrix &affine=a2dIDENTITY_MATRIX) |
virtual void | GetTextExtent (const wxString &string, double &w, double &h, double &descent, double &externalLeading) const |
Protected Attributes | |
a2dFontInfo | m_fontinfo |
Font info. | |
double | m_height |
Font height cache normalized to a font height of 1. | |
double | m_desc |
Font descender cache normalized to a font height of 1. | |
double | m_lead |
Font external leading normalized to a font height of 1. | |
bool | m_ok |
True if a valid font is set. | |
Friends | |
class | a2dFont |
Definition at line 167 of file stylebase.cpp.
|
inlinevirtual |
Get kerning space between two characters.
Kerning is a method, which moves characters closer together/further apart, to improve the look of the font. Eg. the letter combination LT will be moved closer together. The return value is negative or positive, to respectively move characters closer together, or further apart.
Reimplemented in a2dFontStrokeData, a2dFontFreetypeData, and a2dFontDcData.
Definition at line 224 of file stylebase.cpp.