wxFont
Implements methods from the following classes
wxGDIObject
Methods
wxFont
Default ctor.
Bold
Returns a bold version of this font.
GetEncoding
Returns the encoding of this font.
GetFaceName
Returns the face name associated with the font, or the empty string if there is no face information.
GetFamily
Gets the font family if possible.
GetNativeFontInfo
Returns the encoding of this font.
GetNativeFontInfoDesc
Returns the platform-dependent string completely describing this font.
GetNativeFontInfoUserDesc
Returns a user-friendly string for this font object.
GetPixelSize
Gets the pixel size.
GetPointSize
Gets the point size.
GetStyle
Gets the font style.
GetUnderlined
Returns true if the font is underlined, false otherwise.
GetWeight
Gets the font weight.
IsFixedWidth
Returns true if the font is a fixed width (or monospaced) font, false if it is a proportional one or font is invalid.
IsOk
Returns true if this object is a valid font, false otherwise.
Italic
Returns an italic version of this font.
Larger
Returns a larger version of this font.
MakeBold
Changes this font to be bold.
MakeItalic
Changes this font to be italic.
MakeLarger
Changes this font to be larger.
MakeSmaller
Changes this font to be smaller.
MakeUnderlined
Changes this font to be underlined.
Scale
Changes the size of this font.
Scaled
Returns a scaled version of this font.
SetEncoding
Sets the encoding for this font.
SetFaceName
Sets the facename for the font.
SetFamily
Sets the font family.
SetNativeFontInfo
Creates the font corresponding to the given native font description string which must have been previously returned by GetNativeFontInfoDesc().
SetNativeFontInfoUserDesc
Creates the font corresponding to the given native font description string and returns true if the creation was successful.
SetPixelSize
Sets the pixel size.
SetPointSize
Sets the point size.
SetStyle
Sets the font style.
SetSymbolicSize
Sets the font size using a predefined symbolic size name.
SetSymbolicSizeRelativeTo
Sets the font size compared to the base font size.
SetUnderlined
Sets underlining.
SetWeight
Sets the font weight.
Smaller
Returns a smaller version of this font.
Underlined
Returns underlined version of this font.
Static Methods
GetDefaultEncoding
Returns the current application's default encoding.
NewMethod
This function takes the same parameters as the relative wxFont constructor and returns a new font object allocated on the heap.
SetDefaultEncoding
Sets the default font encoding.
wxFont
wxFont
( )
Default ctor.
wxFont
(
wxFont
$font
)
Copy constructor, uses reference counting.
wxFont
(
integer
$pointSize
,
wxFontFamily
$family
,
wxFontStyle
$style
,
wxFontWeight
$weight
,
bool
$underline
=
false
,
string
$faceName
=
wxEmptyString
,
wxFontEncoding
$encoding
=
wxFONTENCODING_DEFAULT
)
Creates a font object with the specified attributes and size in points.
wxFont
(
wxSize
$pixelSize
,
wxFontFamily
$family
,
wxFontStyle
$style
,
wxFontWeight
$weight
,
bool
$underline
=
false
,
string
$faceName
=
wxEmptyString
,
wxFontEncoding
$encoding
=
wxFONTENCODING_DEFAULT
)
Creates a font object with the specified attributes and size in pixels.
wxFont
(
string
$nativeInfoString
)
Constructor from font description string.
wxFont
(
wxNativeFontInfo
$nativeInfo
)
Construct font from a native font info structure.
Bold
wxFont
Bold
( )
Returns a bold version of this font.
GetDefaultEncoding
static
wxFontEncoding
GetDefaultEncoding
( )
Returns the current application's default encoding.
GetEncoding
wxFontEncoding
GetEncoding
( )
Returns the encoding of this font.
GetFaceName
string
GetFaceName
( )
Returns the face name associated with the font, or the empty string if there is no face information.
GetFamily
wxFontFamily
GetFamily
( )
Gets the font family if possible.
GetNativeFontInfo
wxNativeFontInfo
GetNativeFontInfo
( )
Returns the encoding of this font.
GetNativeFontInfoDesc
string
GetNativeFontInfoDesc
( )
Returns the platform-dependent string completely describing this font.
GetNativeFontInfoUserDesc
string
GetNativeFontInfoUserDesc
( )
Returns a user-friendly string for this font object.
GetPixelSize
wxSize
GetPixelSize
( )
Gets the pixel size.
GetPointSize
integer
GetPointSize
( )
Gets the point size.
GetStyle
wxFontStyle
GetStyle
( )
Gets the font style.
GetUnderlined
bool
GetUnderlined
( )
Returns true if the font is underlined, false otherwise.
GetWeight
wxFontWeight
GetWeight
( )
Gets the font weight.
IsFixedWidth
bool
IsFixedWidth
( )
Returns true if the font is a fixed width (or monospaced) font, false if it is a proportional one or font is invalid.
IsOk
bool
IsOk
( )
Returns true if this object is a valid font, false otherwise.
Italic
wxFont
Italic
( )
Returns an italic version of this font.
Larger
wxFont
Larger
( )
Returns a larger version of this font.
MakeBold
wxFont
&
MakeBold
( )
Changes this font to be bold.
MakeItalic
wxFont
&
MakeItalic
( )
Changes this font to be italic.
MakeLarger
wxFont
&
MakeLarger
( )
Changes this font to be larger.
MakeSmaller
wxFont
&
MakeSmaller
( )
Changes this font to be smaller.
MakeUnderlined
wxFont
&
MakeUnderlined
( )
Changes this font to be underlined.
NewMethod
static
wxFont
&
NewMethod
(
integer
$pointSize
,
wxFontFamily
$family
,
wxFontStyle
$style
,
wxFontWeight
$weight
,
bool
$underline
=
false
,
string
$faceName
=
wxEmptyString
,
wxFontEncoding
$encoding
=
wxFONTENCODING_DEFAULT
)
This function takes the same parameters as the relative wxFont constructor and returns a new font object allocated on the heap.
static
wxFont
&
NewMethod
(
integer
$pointSize
,
wxFontFamily
$family
,
integer
$flags
=
wxFONTFLAG_DEFAULT
,
string
$faceName
=
wxEmptyString
,
wxFontEncoding
$encoding
=
wxFONTENCODING_DEFAULT
)
This function takes the same parameters as the relative wxFont constructor and returns a new font object allocated on the heap.
static
wxFont
&
NewMethod
(
wxSize
$pixelSize
,
wxFontFamily
$family
,
wxFontStyle
$style
,
wxFontWeight
$weight
,
bool
$underline
=
false
,
string
$faceName
=
wxEmptyString
,
wxFontEncoding
$encoding
=
wxFONTENCODING_DEFAULT
)
This function takes the same parameters as the relative wxFont constructor and returns a new font object allocated on the heap.
static
wxFont
&
NewMethod
(
wxSize
$pixelSize
,
wxFontFamily
$family
,
integer
$flags
=
wxFONTFLAG_DEFAULT
,
string
$faceName
=
wxEmptyString
,
wxFontEncoding
$encoding
=
wxFONTENCODING_DEFAULT
)
This function takes the same parameters as the relative wxFont constructor and returns a new font object allocated on the heap.
static
wxFont
&
NewMethod
(
string
$nativeInfoString
)
This function takes the same parameters as the relative wxFont constructor and returns a new font object allocated on the heap.
static
wxFont
&
NewMethod
(
wxNativeFontInfo
$nativeInfo
)
This function takes the same parameters as the relative wxFont constructor and returns a new font object allocated on the heap.
Scale
wxFont
&
Scale
(
float
$x
)
Changes the size of this font.
Scaled
wxFont
Scaled
(
float
$x
)
Returns a scaled version of this font.
SetDefaultEncoding
static
SetDefaultEncoding
(
wxFontEncoding
$encoding
)
Sets the default font encoding.
SetEncoding
SetEncoding
(
wxFontEncoding
$encoding
)
Sets the encoding for this font.
SetFaceName
bool
SetFaceName
(
string
$faceName
)
Sets the facename for the font.
SetFamily
SetFamily
(
wxFontFamily
$family
)
Sets the font family.
SetNativeFontInfo
bool
SetNativeFontInfo
(
string
$info
)
Creates the font corresponding to the given native font description string which must have been previously returned by GetNativeFontInfoDesc().
SetNativeFontInfo
(
wxNativeFontInfo
$info
)
Sets the encoding for this font.
SetNativeFontInfoUserDesc
bool
SetNativeFontInfoUserDesc
(
string
$info
)
Creates the font corresponding to the given native font description string and returns true if the creation was successful.
SetPixelSize
SetPixelSize
(
wxSize
$pixelSize
)
Sets the pixel size.
SetPointSize
SetPointSize
(
integer
$pointSize
)
Sets the point size.
SetStyle
SetStyle
(
wxFontStyle
$style
)
Sets the font style.
SetSymbolicSize
SetSymbolicSize
(
wxFontSymbolicSize
$size
)
Sets the font size using a predefined symbolic size name.
SetSymbolicSizeRelativeTo
SetSymbolicSizeRelativeTo
(
wxFontSymbolicSize
$size
,
integer
$base
)
Sets the font size compared to the base font size.
SetUnderlined
SetUnderlined
(
bool
$underlined
)
Sets underlining.
SetWeight
SetWeight
(
wxFontWeight
$weight
)
Sets the font weight.
Smaller
wxFont
Smaller
( )
Returns a smaller version of this font.
Underlined
wxFont
Underlined
( )
Returns underlined version of this font.