Pango.Coverage

g GObject.Object GObject.Object Pango.Coverage Pango.Coverage GObject.Object->Pango.Coverage

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

from_bytes (bytes)

class

new ()

copy ()

get (index_)

max (other)

ref ()

set (index_, level)

to_bytes ()

unref ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Pango.Coverage(**kwargs)
Bases:

GObject.Object

Abstract:

No

A PangoCoverage structure is a map from Unicode characters to [enum`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.

classmethod from_bytes(bytes)[source]
Parameters:

bytes (bytes) – binary data representing a PangoCoverage

Returns:

a newly allocated PangoCoverage

Return type:

Pango.Coverage or None

Convert data generated from [method`Pango`.Coverage.to_bytes] back to a PangoCoverage.

Deprecated since version 1.44: This returns None

classmethod new()[source]
Returns:

the newly allocated PangoCoverage, initialized to Pango.CoverageLevel.NONE with a reference count of one, which should be freed with [method`Pango`.Coverage.unref].

Return type:

Pango.Coverage

Create a new PangoCoverage

copy()[source]
Returns:

the newly allocated PangoCoverage, with a reference count of one, which should be freed with [method`Pango`.Coverage.unref].

Return type:

Pango.Coverage

Copy an existing PangoCoverage.

get(index_)[source]
Parameters:

index (int) – the index to check

Returns:

the coverage level of self for character index_.

Return type:

Pango.CoverageLevel

Determine whether a particular index is covered by self.

max(other)[source]
Parameters:

other (Pango.Coverage) – another PangoCoverage

Set the coverage for each index in self to be the max (better) value of the current coverage for the index and the coverage for the corresponding index in other.

Deprecated since version 1.44: This function does nothing

ref()[source]
Returns:

self

Return type:

Pango.Coverage

Increase the reference count on the PangoCoverage by one.

Deprecated since version 1.52: Use GObject.Object.ref instead

set(index_, level)[source]
Parameters:

Modify a particular index within self

to_bytes()[source]
Returns:

location to store result (must be freed with GLib.free())

Return type:

bytes: bytes

Convert a PangoCoverage structure into a flat binary format.

Deprecated since version 1.44: This returns None

unref()[source]

Decrease the reference count on the PangoCoverage by one.

If the result is zero, free the coverage and all associated memory.

Deprecated since version 1.52: Use GObject.Object.unref instead