phoenix_title 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 Class Hierarchy

Inheritance diagram for class NativeFontInfo:

method_summary Methods Summary

__init__

FromString

FromUserString

GetEncoding

GetFaceName

GetFamily

GetFractionalPointSize

GetNumericWeight

GetPointSize

GetStyle

GetUnderlined

GetWeight

Init

InitFromFont

SetEncoding

SetFaceName

SetFamily

SetFractionalPointSize

SetNumericWeight

SetPointSize

SetStyle

SetUnderlined

SetWeight

ToString

ToUserString

__str__


property_summary Properties Summary

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


api Class API

class wx.NativeFontInfo(object)

Possible constructors:

NativeFontInfo()

NativeFontInfo(info)

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)

overload Overloaded Implementations:



__init__ (self)



__init__ (self, info)

Parameters:

info (wx.NativeFontInfo) –





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:

string



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)


InitFromFont(self, font)
Parameters:

font (wx.Font) –



SetEncoding(self, encoding)
Parameters:

encoding (FontEncoding) –



SetFaceName(self, *args, **kw)

overload Overloaded Implementations:



SetFaceName (self, facename)

Parameters:

facename (string) –

Return type:

bool



SetFaceName (self, facenames)

Parameters:

facenames (list of strings) –





SetFamily(self, family)
Parameters:

family (FontFamily) –



SetFractionalPointSize(self, pointsize)
Parameters:

pointsize (float) –



SetNumericWeight(self, weight)
Parameters:

weight (int) –



SetPointSize(self, pointsize)
Parameters:

pointsize (int) –



SetStyle(self, style)
Parameters:

style (FontStyle) –



SetUnderlined(self, underlined)
Parameters:

underlined (bool) –



SetWeight(self, weight)
Parameters:

weight (FontWeight) –



ToString(self)
Return type:

string



ToUserString(self)
Return type:

string



__str__(self)
Return type:

string


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