GeezerVison is showing docs.wxpython.org — wx.NativeFontInfo — wxPython 4.3.2 Docs
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¶
Inheritance diagram for class
NativeFontInfo:
Methods Summary¶
Properties Summary¶
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)¶
Overloaded Implementations:
__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:
wx.FontEncoding
-
GetFaceName(self)¶
- Return type:
str
-
GetFamily(self)¶
- Return type:
wx.FontFamily
-
GetFractionalPointSize(self)¶
- Return type:
float
-
GetNumericWeight(self)¶
- Return type:
int
-
GetPointSize(self)¶
- Return type:
int
-
GetStyle(self)¶
- Return type:
wx.FontStyle
-
GetUnderlined(self)¶
- Return type:
bool
-
GetWeight(self)¶
- Return type:
wx.FontWeight
-
Init(self)¶
- Return type:
None
-
InitFromFont(self, font)¶
- Parameters:
font (wx.Font)
- Return type:
None
-
SetEncoding(self, encoding)¶
- Parameters:
encoding (FontEncoding)
- Return type:
None
-
SetFaceName(self, *args, **kw)¶
Overloaded Implementations:
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
-
SetStyle(self, style)¶
- Parameters:
style (FontStyle)
- 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 and SetEncoding
-
FaceName¶
See GetFaceName and SetFaceName
-
Family¶
See GetFamily and SetFamily
-
FractionalPointSize¶
See GetFractionalPointSize and SetFractionalPointSize
-
NumericWeight¶
See GetNumericWeight and SetNumericWeight
-
PointSize¶
See GetPointSize and SetPointSize
-
Style¶
See GetStyle and SetStyle
-
Underlined¶
See GetUnderlined and SetUnderlined
-
Weight¶
See GetWeight and SetWeight