.\" This is a wxWidgets manpage page generated from the XML docs .TH wxFontEnumerator 3wx 2005-02-15 "wxWidgets" "wxWidgets class documentation" .SH NAME wxFontEnumerator \- .SH DESCRIPTION wxFontEnumerator enumerates either all available fonts on the system or only the ones with given attributes - either only fixed-width (suited for use in programs such as terminal emulators and the like) or the fonts available in the given encoding . To do this, you just have to call one of EnumerateXXX() functions - either EnumerateFacenames or EnumerateEncodings and the corresponding callback ( OnFacename or OnFontEncoding ) will be called repeatedly until either all fonts satisfying the specified criteria are exhausted or the callback returns false. .SH "PARENTS" .SH "INCLUDE FILES" wx/fontenum.h .SH MEMBERS .SS virtual bool EnumerateFacenames (wxFontEncoding encoding = wxFONTENCODING_SYSTEMbool fixedWidthOnly = false) Call OnFacename for each font which supports given encoding (only if it is not wxFONTENCODING_SYSTEM) and is of fixed width (if fixedWidthOnly is true). Calling this function with default arguments will result in enumerating all fonts available on the system. .SS virtual bool EnumerateEncodings (const wxString& font = "") Call OnFontEncoding for each encoding supported by the given font - or for each encoding supported by at least some font if font is not specified. .SS wxArrayString* GetEncodings () Return array of strings containing all encodings found by EnumerateEncodings . This is convenience function. It is based on default implementation of OnFontEncoding so don't expect it to work if you overwrite that method. .SS wxArrayString* GetFacenames () Return array of strings containing all facenames found by EnumerateFacenames . This is convenience function. It is based on default implementation of OnFacename so don't expect it to work if you overwrite that method. .SS virtual bool OnFacename (const wxString& font) Called by EnumerateFacenames for each match. Return true to continue enumeration or false to stop it. .SS virtual bool OnFontEncoding (const wxString& fontconst wxString& encoding) Called by EnumerateEncodings for each match. Return true to continue enumeration or false to stop it. .SH "SEE ALSO" Font encoding overview Font sample wxFont wxFontMapper .SH "AUTHORS" Documentation content by Julian Smart, Robert Roebling, Vadim Zeitlin, Robin Dunn, et al Conversion to manpage format by Arnout Engelen (http://bzzt.net), bugreports welcome.