a2dFontFreetypeData Class Reference
[a2dPropObject holds property objectsobjects used for styling a2dCanvasObject'sText related classes]

Freetype font class. More...

#include <artbase/stylebase.h>

Inheritance diagram for a2dFontFreetypeData:

Inheritance graph
[legend]
Collaboration diagram for a2dFontFreetypeData:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual a2dFontType GetType (void) const
 a2dFontFreetypeData (const wxString &filename=wxT(""), double size=0.0, wxFontEncoding encoding=wxFONTENCODING_DEFAULT, int weight=wxNORMAL)
 Constructor.
 a2dFontFreetypeData (const a2dFontFreetypeData &other)
 Copy constructor.
virtual ~a2dFontFreetypeData ()
 Destructor.
void SetFilename (const wxString &filename)
 Set the font filename and load the font.
wxString GetFilename (bool filenameonly=false) const
 Get the font filename.
void SetEncodingConverter (wxEncodingConverter *converter)
const a2dGlyphGetGlyph (wxChar c) const
 Get the glyph of a single character.
double GetWidth (wxChar c) const
double GetKerning (wxChar c1, wxChar c2) const
bool GetVpath (wxChar c, a2dVpath &glyph, const a2dAffineMatrix &affine=a2dIDENTITY_MATRIX)

Static Public Member Functions

static void GetInfoList (a2dFontInfoList &list)
static a2dFontFreetypeDataCreateFont (const a2dFontInfo &info, bool force=false)

Protected Member Functions

void ClearCacheLinkes (void)

Protected Attributes

wxString m_filename
 Filename of the vector font.
a2dGlyphm_glyphcache
 Glyph Cache. This stores the 'normal' part of the alphabet.
a2dGlyphHash m_extglyphcache
 Glyph cache. This stores the extended characters.
wxChar m_lastChar
 last character for glyph cache one character
a2dGlyphm_a2dLastGlyph
 Glyph cache one last character.
FT_Face m_face
 freetypelib face struct.
wxFontEncoding m_encoding
 encoding setting
wxEncodingConverter * m_converter
 encoding converter

Friends

class a2dFont


Detailed Description

Freetype font class.

Definition at line 846 of file stylebase.cpp.


Constructor & Destructor Documentation

a2dFontFreetypeData::a2dFontFreetypeData ( const wxString &  filename = wxT( "" ),
double  size = 0.0,
wxFontEncoding  encoding = wxFONTENCODING_DEFAULT,
int  weight = wxNORMAL 
)

Constructor.

Parameters:
filename Filename of the vector font.
size Size in world coordinates.
encoding endocing of font

Definition at line 939 of file stylebase.cpp.


Member Function Documentation

void a2dFontFreetypeData::SetFilename ( const wxString &  filename  ) 

Set the font filename and load the font.

Parameters:
filename The filename of the font. This may either be a full path, or just the fontname. In the latter case, the fontpath of a2dGlobals will be used to search the font.
See also:
a2dGlobal

Definition at line 1090 of file stylebase.cpp.

wxString a2dFontFreetypeData::GetFilename ( bool  filenameonly = false  )  const

Get the font filename.

Parameters:
filenameonly The returned filename will be stripped of drive-letters and directories.
Returns:
The filename of the font.

Definition at line 1056 of file stylebase.cpp.

const a2dGlyph * a2dFontFreetypeData::GetGlyph ( wxChar  c  )  const

Get the glyph of a single character.

Returns:
The glyph of the character, in a coordinate space, normalized to a font size FTNORMFONT.

Definition at line 1168 of file stylebase.cpp.


The documentation for this class was generated from the following file:
a2dFontFreetypeData Class Reference -- Tue Aug 31 18:27:31 2010 -- 31 Aug 2010 -- 1.5.5 -- wxArt2D -- . -- Main Page Reference Documentation