back to gui 

wxFontList

generated from ../src/mod_gui/misc/fontlist.cpp

A font list is a list containing all fonts which have been created. There is only one instance of this class: wxTheFontList. Use this object to search for a previously created font of the desired type and create it if not already found. In some windowing systems, the font may be a scarce resource, so it is best to reuse old resources if possible. When an application finishes, all fonts will be deleted and their resources freed, eliminating the possibility of 'memory leaks'. See wxFont, wxFontEncoding and wxFontEnumerator

Constants

Methods

findOrCreateFont

findOrCreateFont(PointSize, 
                 Family, 
                 Style, 
                 Weight, 
                 Underline = false, 
                 FaceName = "", 
                 Encoding = wxFontEncoding.DEFAULT) : wxFont
 
Name Type Default Description
PointSize Integer
Family Integer
Style Integer
Weight Integer
Underline Boolean false
FaceName String
Encoding wxFontEncoding wxFontEncoding.DEFAULT

Finds a font of the given specification, or creates one and adds it to the list. The following code shows an example: var font = wxTheFontList.findOrCreateFont(10, wxFont.DEFAULT, wxFont.NORMAL, wxFont.NORMAL);



SourceForge.net Logo Support This Project

Table of Contents

Methods

findOrCreateFont


Design downloaded from Zeroweb.org: Free website templates, layouts, and tools.