Coverage
Superclasses: Object
A PangoCoverage
structure is a map from Unicode characters
to 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
Methods
- class Coverage
- from_bytes(bytes: Sequence[int]) Coverage | None
Convert data generated from
to_bytes
back to aPangoCoverage
.Deprecated since version 1.44: This returns
None
- Parameters:
bytes – binary data representing a
PangoCoverage
- get(index_: int) CoverageLevel
Determine whether a particular index is covered by
coverage
.- Parameters:
index – the index to check
- max(other: 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 inother
.Deprecated since version 1.44: This function does nothing
- Parameters:
other – another
PangoCoverage
- set(index_: int, level: CoverageLevel) None
Modify a particular index within
coverage
- Parameters:
index – the index to modify
level – the new level for @``index_``