:right-sidebar: True Coverage =================================================================== .. currentmodule:: gi.repository.Pango .. class:: Coverage(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.Object` A ``PangoCoverage`` structure is a map from Unicode characters to :obj:`~gi.repository.Pango.CoverageLevel` values. It is often necessary in Pango to determine if a particular font can represent a particular character, and also how well it can represent that character. The ``PangoCoverage`` is a data structure that is used to represent that information. It is an opaque structure with no public fields. Constructors ------------ .. rst-class:: interim-class .. class:: Coverage :no-index: .. classmethod:: new() -> ~gi.repository.Pango.Coverage Create a new ``PangoCoverage`` Methods ------- .. rst-class:: interim-class .. class:: Coverage :no-index: .. classmethod:: from_bytes() -> ~gi.repository.Pango.Coverage | None Convert data generated from :obj:`~gi.repository.Pango.Coverage.to_bytes` back to a ``PangoCoverage``\. .. deprecated:: 1.44 This returns :const:`None` .. method:: get(index_: int) -> ~gi.repository.Pango.CoverageLevel Determine whether a particular index is covered by ``coverage``\. :param index_: the index to check .. method:: max(other: ~gi.repository.Pango.Coverage) -> None Set the coverage for each index in ``coverage`` to be the max (better) value of the current coverage for the index and the coverage for the corresponding index in ``other``\. .. deprecated:: 1.44 This function does nothing :param other: another ``PangoCoverage`` .. method:: set(index_: int, level: ~gi.repository.Pango.CoverageLevel) -> None Modify a particular index within ``coverage`` :param index_: the index to modify :param level: the new level for ``index_`` .. method:: to_bytes() -> list[int] Convert a ``PangoCoverage`` structure into a flat binary format. .. deprecated:: 1.44 This returns :const:`None`