#include <artbase/stylebase.h>


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 a2dGlyph * | GetGlyph (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 a2dFontFreetypeData * | CreateFont (const a2dFontInfo &info, bool force=false) |
Protected Member Functions | |
| void | ClearCacheLinkes (void) |
Protected Attributes | |
| wxString | m_filename |
| Filename of the vector font. | |
| a2dGlyph * | m_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 | |
| a2dGlyph * | m_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 |
Definition at line 846 of file stylebase.cpp.
| a2dFontFreetypeData::a2dFontFreetypeData | ( | const wxString & | filename = wxT( "" ), |
|
| double | size = 0.0, |
|||
| wxFontEncoding | encoding = wxFONTENCODING_DEFAULT, |
|||
| int | weight = wxNORMAL | |||
| ) |
Constructor.
| filename | Filename of the vector font. | |
| size | Size in world coordinates. | |
| encoding | endocing of font |
Definition at line 939 of file stylebase.cpp.
| void a2dFontFreetypeData::SetFilename | ( | const wxString & | filename | ) |
Set the font filename and load the font.
| 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. |
Definition at line 1090 of file stylebase.cpp.
| wxString a2dFontFreetypeData::GetFilename | ( | bool | filenameonly = false |
) | const |
Get the font filename.
| filenameonly | The returned filename will be stripped of drive-letters and directories. |
Definition at line 1056 of file stylebase.cpp.
| const a2dGlyph * a2dFontFreetypeData::GetGlyph | ( | wxChar | c | ) | const |
Get the glyph of a single character.
Definition at line 1168 of file stylebase.cpp.