Pango.Coverage¶
class — extends GObject.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¶
new¶
Create a new PangoCoverage
Methods¶
copy¶
Copy an existing PangoCoverage.
get¶
Determine whether a particular index is covered by coverage.
Parameters:
index_— the index to check
max¶
:::warning Deprecated since 1.44 This API is deprecated. :::
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.
Parameters:
other— anotherPangoCoverage
ref¶
:::warning Deprecated since 1.52 This API is deprecated. :::
Increase the reference count on the PangoCoverage by one.
set¶
Modify a particular index within coverage
Parameters:
index_— the index to modifylevel— the new level forindex_
to_bytes¶
:::warning Deprecated since 1.44 This API is deprecated. :::
Convert a PangoCoverage structure into a flat binary format.
unref¶
:::warning Deprecated since 1.52 This API is deprecated. :::
Decrease the reference count on the PangoCoverage by one.
If the result is zero, free the coverage and all associated memory.
Static functions¶
from_bytes¶
:::warning Deprecated since 1.44 This API is deprecated. :::
Convert data generated from Coverage.to_bytes
back to a PangoCoverage.
Parameters:
bytes— binary data representing aPangoCoverage