:right-sidebar: True Font =================================================================== .. currentmodule:: gi.repository.PangoXft .. class:: Font(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.PangoFc.Font`, :class:`~gi.repository.Pango.Font`, :class:`~gi.repository.GObject.Object` ``PangoXftFont`` is an implementation of ``PangoFcFont`` using the Xft library for rendering. It is used in conjunction with ``PangoXftFontMap``\. Methods ------- .. rst-class:: interim-class .. class:: Font :no-index: .. method:: get_glyph(wc: str) -> int Gets the glyph index for a given Unicode character for ``font``\. If you only want to determine whether the font has the glyph, use :func:`~gi.repository.PangoXft.Font.has_char`. Use :func:`~gi.repository.PangoFc.PangoFc.Font.get_glyph` instead. .. versionadded:: 1.2 :param wc: Unicode codepoint to look up .. method:: get_unknown_glyph(wc: str) -> int Returns the index of a glyph suitable for drawing ``wc`` as an unknown character. Use :func:`~gi.repository.Pango.GET_UNKNOWN_GLYPH` instead. :param wc: the Unicode character for which a glyph is needed. .. method:: has_char(wc: str) -> bool Determines whether ``font`` has a glyph for the codepoint ``wc``\. Use :func:`~gi.repository.PangoFc.PangoFc.Font.has_char` instead. .. versionadded:: 1.2 :param wc: Unicode codepoint to look up