Table Of Contents

Previous topic

NameFlags

Next topic

NavigationKeyEvent

This Page

phoenix_title NativeFontInfo

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)


class_hierarchy Inheritance Diagram

Inheritance diagram for class NativeFontInfo

Inheritance diagram of NativeFontInfo


api Class API



class NativeFontInfo(object)

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())

Possible constructors:

NativeFontInfo()

NativeFontInfo(info)

Methods



__init__(self, *args, **kw)

overload Overloaded Implementations:



__init__ (self)



__init__ (self, info)

Parameters:info (NativeFontInfo) –





FromString(self, s)
Parameters:s (string) –
Return type:bool


FromUserString(self, s)
Parameters:s (string) –
Return type:bool


GetEncoding(self)
Return type: FontEncoding


GetFaceName(self)
Return type:string


GetFamily(self)
Return type: FontFamily


GetPointSize(self)
Return type:int


GetStyle(self)
Return type: FontStyle


GetUnderlined(self)
Return type:bool


GetWeight(self)
Return type: FontWeight


Init(self)


InitFromFont(self, font)
Parameters:font (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) –


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



PointSize

See GetPointSize and SetPointSize



Style

See GetStyle and SetStyle



Underlined

See GetUnderlined and SetUnderlined



Weight

See GetWeight and SetWeight