.. wxPython Phoenix documentation This file was generated by Phoenix's sphinx generator and associated tools, do not edit by hand. Copyright: (c) 2011-2020 by Total Control Software License: wxWindows License .. include:: headings.inc .. _wx.richtext.RichTextFontTable: ========================================================================================================================================== |phoenix_title| **wx.richtext.RichTextFontTable** ========================================================================================================================================== Manages quick access to a pool of fonts for rendering rich text. .. seealso:: :ref:`wx.richtext.RichTextBuffer`, :ref:`wx.richtext.RichTextCtrl` | |class_hierarchy| Class Hierarchy ================================= .. raw:: html
Inheritance diagram for class RichTextFontTable:
| |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~wx.richtext.RichTextFontTable.__init__` Default constructor. :meth:`~wx.richtext.RichTextFontTable.Clear` Clears the font table. :meth:`~wx.richtext.RichTextFontTable.FindFont` Finds a font for the given attribute object. :meth:`~wx.richtext.RichTextFontTable.IsOk` Returns ``True`` if the font table is valid. :meth:`~wx.richtext.RichTextFontTable.SetFontScale` Set the font scale factor. :meth:`~wx.richtext.RichTextFontTable.__ne__` Inequality operator. :meth:`~wx.richtext.RichTextFontTable.__eq__` Equality operator. ================================================================================ ================================================================================ | |api| Class API =============== .. class:: wx.richtext.RichTextFontTable(Object) **Possible constructors**:: RichTextFontTable() RichTextFontTable(table) Manages quick access to a pool of fonts for rendering rich text. .. method:: __init__(self, *args, **kw) |overload| Overloaded Implementations: :html:`

` **__init__** `(self)` Default constructor. :html:`

` **__init__** `(self, table)` Copy constructor. :param `table`: :type `table`: wx.richtext.RichTextFontTable :html:`

` .. method:: Clear(self) Clears the font table. .. method:: FindFont(self, fontSpec) Finds a font for the given attribute object. :param `fontSpec`: :type `fontSpec`: wx.richtext.RichTextAttr :rtype: `Font` .. method:: IsOk(self) Returns ``True`` if the font table is valid. :rtype: `bool` .. method:: SetFontScale(self, fontScale) Set the font scale factor. :param `fontScale`: :type `fontScale`: float .. method:: __ne__(self) Inequality operator. :param `table`: :type `table`: wx.richtext.RichTextFontTable .. method:: __eq__(self) Equality operator. :param `table`: :type `table`: wx.richtext.RichTextFontTable