wx.NativeFontInfo¶
wx.NativeFontInfo is platform-specific font representation: this class should be considered as an opaque font description only used by the native functions, the user code can only get the objects of this type from somewhere and pass it somewhere else (possibly save them somewhere using wx.ToString and restore them using wx.FromString )
Class Hierarchy¶
Methods Summary¶
Properties Summary¶
See |
|
See |
|
See |
|
See |
|
See |
|
Class API¶
- class wx.NativeFontInfo(object)¶
Possible constructors:
NativeFontInfo() -> None NativeFontInfo(info) -> None
NativeFontInfo is platform-specific font representation: this class should be considered as an opaque font description only used by the native functions, the user code can only get the objects of this type from somewhere and pass it somewhere else (possibly save them somewhere using ToString() and restore them using FromString())
Methods¶
- __init__(self, *args, **kw)¶
-
__init__ (self)
- Return type:
None
__init__ (self, info)
- Parameters:
info (wx.NativeFontInfo)
- Return type:
None
- FromString(self, s)¶
- Parameters:
s (string)
- Return type:
bool
- FromUserString(self, s)¶
- Parameters:
s (string)
- Return type:
bool
- GetEncoding(self)¶
- Return type:
- GetFaceName(self)¶
- Return type:
str
- GetFamily(self)¶
- Return type:
- GetFractionalPointSize(self)¶
- Return type:
float
- GetNumericWeight(self)¶
- Return type:
int
- GetPointSize(self)¶
- Return type:
int
- GetStyle(self)¶
- Return type:
- GetUnderlined(self)¶
- Return type:
bool
- GetWeight(self)¶
- Return type:
- Init(self)¶
- Return type:
None
- SetEncoding(self, encoding)¶
- Parameters:
encoding (FontEncoding)
- Return type:
None
- SetFaceName(self, *args, **kw)¶
-
SetFaceName (self, facename)
- Parameters:
facename (string)
- Return type:
bool
SetFaceName (self, facenames)
- Parameters:
facenames (list of strings)
- Return type:
None
- SetFamily(self, family)¶
- Parameters:
family (FontFamily)
- Return type:
None
- SetFractionalPointSize(self, pointsize)¶
- Parameters:
pointsize (float)
- Return type:
None
- SetNumericWeight(self, weight)¶
- Parameters:
weight (int)
- Return type:
None
- SetPointSize(self, pointsize)¶
- Parameters:
pointsize (int)
- Return type:
None
- SetUnderlined(self, underlined)¶
- Parameters:
underlined (bool)
- Return type:
None
- SetWeight(self, weight)¶
- Parameters:
weight (FontWeight)
- Return type:
None
- ToString(self)¶
- Return type:
str
- ToUserString(self)¶
- Return type:
str
- __str__(self)¶
- Return type:
str
Properties¶
- Encoding¶
See
GetEncoding
andSetEncoding
- FaceName¶
See
GetFaceName
andSetFaceName
- FractionalPointSize¶
- NumericWeight¶
See
GetNumericWeight
andSetNumericWeight
- PointSize¶
See
GetPointSize
andSetPointSize
- Underlined¶
See
GetUnderlined
andSetUnderlined