wxArt2D
Public Member Functions | Protected Attributes | Friends | List of all members
a2dFontRefData Class Referenceabstract
Inheritance diagram for a2dFontRefData:
Inheritance graph
[legend]
Collaboration diagram for a2dFontRefData:
Collaboration graph
[legend]

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
 

Detailed Description

Definition at line 167 of file stylebase.cpp.

Member Function Documentation

virtual double a2dFontRefData::GetKerning ( wxChar  c1,
wxChar  c2 
) const
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.


The documentation for this class was generated from the following file:
a2dFontRefData Class Reference -- Sun Oct 12 2014 17:04:39 -- Sun Oct 12 2014 -- 1.8.5 -- wxArt2D -- . -- Main Page Reference Documentation