41 void SetLocale(wxString &newLocale);
61 wxFont *
GetFont(
const wxString &TextElement,
int requested_font_size = 0);
71 wxColour
GetFontColor(
const wxString &TextElement)
const;
94 bool SetFontColor(
const wxString &TextElement,
const wxColour color)
const;
138 wxArrayString
GetDialogStrings(
const wxString &locale = wxEmptyString)
const;
205 void LoadFontNative(wxString *pConfigString, wxString *pNativeDesc);
220 bool SetFont(
const wxString &TextElement, wxFont *pFont, wxColour color);
253 wxFontStyle style, wxFontWeight weight,
254 bool underline =
false,
255 const wxString &facename = wxEmptyString,
256 wxFontEncoding encoding = wxFONTENCODING_DEFAULT);
259 bool underline =
false,
260 const wxString &face = wxEmptyString,
261 wxFontEncoding encoding = wxFONTENCODING_DEFAULT) {
262 return FindOrCreateFont(pointSize, (wxFontFamily)family, (wxFontStyle)style,
263 (wxFontWeight)weight, underline, face, encoding);
280 static void Shutdown();
306 wxString GetSimpleNativeFont(
int size, wxString face);
321 bool IsDefaultFontEntry(
const MyFontDesc *font_desc)
const;
331 static int GetSystemFontSize();
341 static wxString GetSystemFontFaceName();
353 MyFontDesc *GetFontDesc(
const wxString &TextElement)
const;
375 FontList *m_fontlist;
381 wxArrayString m_AuxKeyArray;
wxFont * FindOrCreateFont(int point_size, wxFontFamily family, wxFontStyle style, wxFontWeight weight, bool underline=false, const wxString &facename=wxEmptyString, wxFontEncoding encoding=wxFONTENCODING_DEFAULT)
Creates or finds a matching font in the font cache.
wxString GetFullConfigDesc(int i) const
Gets description of font at index i.
wxColour GetFontColor(const wxString &TextElement) const
Gets the text color for a UI element.
bool AddAuxKey(wxString key)
Adds new plugin-defined font configuration key.
bool ResetFontToDefault(const wxString &TextElement)
Resets the font configuration for a UI element back to system defaults.
void LoadFontNative(wxString *pConfigString, wxString *pNativeDesc)
Loads font settings from a string descriptor.
bool SetFontColor(const wxString &TextElement, const wxColour color) const
Sets the text color for a UI element.
static wxString GetFontConfigKey(const wxString &description)
Creates configuration key from UI element name by combining locale with hash.
bool SetFont(const wxString &TextElement, wxFont *pFont, wxColour color)
Sets the default font properties for a UI element.
int GetNumFonts(void) const
Gets the total number of font configurations currently loaded.
wxColour GetDefaultFontColor(const wxString &TextElement)
Gets the default text color for a UI element.
void ScrubList()
Cleans up stale font entries after a locale change.
wxArrayString GetDialogStrings(const wxString &locale=wxEmptyString) const
Gets the list of unique dialog strings.
MyFontDesc * FindFontByConfigString(wxString pConfigString)
Finds font descriptor by its configuration key.
const wxString & GetNativeDesc(int i) const
Gets the native font descriptor string for the font at index i.
const wxString & GetConfigString(int i) const
Gets the locale-specific configuration key for a font at index i.
wxArrayString & GetAuxKeyArray()
Gets array of plugin-defined font configuration keys.
wxFont * GetFont(const wxString &TextElement, int requested_font_size=0)
Gets a font object for a UI element.
const wxString & GetDialogString(int i) const
Gets the UI element identifier string for the font at index i.