wxFont

wxFont

Creation Parameters
Functions/Procedures
Supertopics
Subtopics

wxFont

[func]
get_default_font_encoding
( )

Category: wxFont

Returns the current application's default encoding.


wxFont

[func]
get_font_encoding
( atom font )

Category: wxFont

Returns the encoding of the specified font.


wxFont

[func]
get_font_family
( atom font )

Category: wxFont

Returns the font family for the specified font.


wxFont

[func]
get_font_members
( atom font )

Category: wxFont

Returns the font data in a sequence that can be used to create a new font:

 { pointSize, family, style, weight, underlined, faceName, encoding }

wxFont

[func]
get_font_name
( atom font )

Category: wxFont

Returns the face name of the specified font.


wxFont

[func]
get_font_pointsize
( atom font )

Category: wxFont

Returns the point size for the specified font.


wxFont

[func]
get_font_style
( atom font )

Category: wxFont

Returns the style of the specified font.


wxFont

[func]
get_font_underlined
( atom font )

Category: wxFont

Returns 1 if the specified font is underlined, 0 otherwise.


wxFont

[func]
get_font_weight
( atom font )

Category: wxFont

Returns the weight of the specified font.


wxFont

[func]
get_native_font_info
( atom font )

Category: wxFont

Returns the platform-dependent string completely describing this font. Returned string is always non-empty. Note that the returned string is not meant to be shown or edited by the user: a typical use of this function is for serializing in string-form a wxFont object.


wxFont

[func]
get_native_font_info_user_desc
( atom font )

Category: wxFont

Returns a user-friendly string for this font object. Returned string is always non-empty. Some examples of the formats of returned strings (which are platform-dependent) are in set_native_font_info_user_desc().


wxFont

[func]
get_point_size
( atom font )

Category: wxFont

Gets the point size.


wxFont

[proc]
set_default_font_encoding
( atom font, atom encoding )

Category: wxFont

Sets the default font encoding, which can be one of:


wxFont

[proc]
set_font_face_name
( atom font, sequence face_name )

Category: wxFont

Sets the facename for the font.

To avoid portability problems, don't rely on a specific face, but specify the font family instead or as well. A suitable font will be found on the end-user's system. If both the family and the facename are specified, wxWidgets will first search for the specific face, and then for a font belonging to the same family.


wxFont

[proc]
set_font_familty
( atom font, atom family )

Category: wxFont

Sets the font family, which must be one of:


wxFont

[proc]
set_font_style
( atom font, atom style )

Category: wxFont

Sets the font style, which must be one of:


wxFont

[proc]
set_font_underlined
( atom font, atom underlined )

Category: wxFont

Sets underlining.


wxFont

[proc]
set_font_weight
( atom font, atom weight )

Category: wxFont

Sets the font weight, which must be one of:


wxFont

[func]
set_native_font_info
( atom font, sequence info )

Category: wxFont

Creates the font corresponding to the given native font description string and returns true if the creation was successful. which must have been previously returned by get_native_font_info(). If the string is invalid, font is unchanged. This function is typically used for de-serializing a wxFont object previously saved in a string-form.


wxFont

[func]
set_native_font_info_user_desc
( atom font, sequence info )

Category: wxFont

Creates the font corresponding to the given native font description string and returns true if the creation was successful. Unlike SetNativeFontInfo, this function accepts strings which are user-friendly. Examples of accepted string formats are:


wxFont

[proc]
set_point_size
( atom font, integer points )

Category: wxFont

This sets the point size of the designated font to the value specified by points.