.. include:: headings.inc .. _NativeFontInfo: ========================================================================================================================================== |phoenix_title| **NativeFontInfo** ========================================================================================================================================== :ref:`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 :meth:`~NativeFontInfo.ToString` and restore them using :meth:`~NativeFontInfo.FromString`) | |class_hierarchy| Inheritance Diagram ===================================== Inheritance diagram for class **NativeFontInfo** .. raw:: html

Inheritance diagram of NativeFontInfo

| |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~NativeFontInfo.__init__` :meth:`~NativeFontInfo.FromString` :meth:`~NativeFontInfo.FromUserString` :meth:`~NativeFontInfo.GetEncoding` :meth:`~NativeFontInfo.GetFaceName` :meth:`~NativeFontInfo.GetFamily` :meth:`~NativeFontInfo.GetPointSize` :meth:`~NativeFontInfo.GetStyle` :meth:`~NativeFontInfo.GetUnderlined` :meth:`~NativeFontInfo.GetWeight` :meth:`~NativeFontInfo.Init` :meth:`~NativeFontInfo.InitFromFont` :meth:`~NativeFontInfo.SetEncoding` :meth:`~NativeFontInfo.SetFaceName` :meth:`~NativeFontInfo.SetFamily` :meth:`~NativeFontInfo.SetPointSize` :meth:`~NativeFontInfo.SetStyle` :meth:`~NativeFontInfo.SetUnderlined` :meth:`~NativeFontInfo.SetWeight` :meth:`~NativeFontInfo.ToString` :meth:`~NativeFontInfo.ToUserString` :meth:`~NativeFontInfo.__str__` ================================================================================ ================================================================================ | |property_summary| Properties Summary ===================================== ================================================================================ ================================================================================ :attr:`~NativeFontInfo.Encoding` See :meth:`~NativeFontInfo.GetEncoding` and :meth:`~NativeFontInfo.SetEncoding` :attr:`~NativeFontInfo.FaceName` See :meth:`~NativeFontInfo.GetFaceName` and :meth:`~NativeFontInfo.SetFaceName` :attr:`~NativeFontInfo.Family` See :meth:`~NativeFontInfo.GetFamily` and :meth:`~NativeFontInfo.SetFamily` :attr:`~NativeFontInfo.PointSize` See :meth:`~NativeFontInfo.GetPointSize` and :meth:`~NativeFontInfo.SetPointSize` :attr:`~NativeFontInfo.Style` See :meth:`~NativeFontInfo.GetStyle` and :meth:`~NativeFontInfo.SetStyle` :attr:`~NativeFontInfo.Underlined` See :meth:`~NativeFontInfo.GetUnderlined` and :meth:`~NativeFontInfo.SetUnderlined` :attr:`~NativeFontInfo.Weight` See :meth:`~NativeFontInfo.GetWeight` and :meth:`~NativeFontInfo.SetWeight` ================================================================================ ================================================================================ | |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) .. method:: __init__(self, *args, **kw) |overload| **Overloaded Implementations**: **~~~** **__init__** `(self)` **~~~** **__init__** `(self, info)` :param `info`: :type `info`: NativeFontInfo **~~~** .. method:: FromString(self, s) :param `s`: :type `s`: string :rtype: `bool` .. method:: FromUserString(self, s) :param `s`: :type `s`: string :rtype: `bool` .. method:: GetEncoding(self) :rtype: :ref:`FontEncoding` .. method:: GetFaceName(self) :rtype: `string` .. method:: GetFamily(self) :rtype: :ref:`FontFamily` .. method:: GetPointSize(self) :rtype: `int` .. method:: GetStyle(self) :rtype: :ref:`FontStyle` .. method:: GetUnderlined(self) :rtype: `bool` .. method:: GetWeight(self) :rtype: :ref:`FontWeight` .. method:: Init(self) .. method:: InitFromFont(self, font) :param `font`: :type `font`: Font .. method:: SetEncoding(self, encoding) :param `encoding`: :type `encoding`: FontEncoding .. method:: SetFaceName(self, *args, **kw) |overload| **Overloaded Implementations**: **~~~** **SetFaceName** `(self, facename)` :param `facename`: :type `facename`: string :rtype: `bool` **~~~** **SetFaceName** `(self, facenames)` :param `facenames`: :type `facenames`: list of strings **~~~** .. method:: SetFamily(self, family) :param `family`: :type `family`: FontFamily .. method:: SetPointSize(self, pointsize) :param `pointsize`: :type `pointsize`: int .. method:: SetStyle(self, style) :param `style`: :type `style`: FontStyle .. method:: SetUnderlined(self, underlined) :param `underlined`: :type `underlined`: bool .. method:: SetWeight(self, weight) :param `weight`: :type `weight`: FontWeight .. method:: ToString(self) :rtype: `string` .. method:: ToUserString(self) :rtype: `string` .. method:: __str__(self) :rtype: `string` .. attribute:: Encoding See :meth:`~NativeFontInfo.GetEncoding` and :meth:`~NativeFontInfo.SetEncoding` .. attribute:: FaceName See :meth:`~NativeFontInfo.GetFaceName` and :meth:`~NativeFontInfo.SetFaceName` .. attribute:: Family See :meth:`~NativeFontInfo.GetFamily` and :meth:`~NativeFontInfo.SetFamily` .. attribute:: PointSize See :meth:`~NativeFontInfo.GetPointSize` and :meth:`~NativeFontInfo.SetPointSize` .. attribute:: Style See :meth:`~NativeFontInfo.GetStyle` and :meth:`~NativeFontInfo.SetStyle` .. attribute:: Underlined See :meth:`~NativeFontInfo.GetUnderlined` and :meth:`~NativeFontInfo.SetUnderlined` .. attribute:: Weight See :meth:`~NativeFontInfo.GetWeight` and :meth:`~NativeFontInfo.SetWeight`