1.2 <PangoCoverage>

Class: <PangoCoverage>

It derives from <GObject>.

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

Procedures

Method: coverage:copy self ⇒ %return
Method: copy self ⇒ %return

Copy an existing <PangoCoverage>.

self

Passed: a <PangoCoverage>.

a <PangoCoverage>

%return

Returned: a <PangoCoverage>.

the newly allocated <PangoCoverage>, with a reference count of one, which should be freed with coverage:unref.

Procedure: coverage:from-bytes bytes ⇒ %return

Convert data generated from coverage:to-bytes back to a <PangoCoverage>.

bytes

Passed: a bytevector, or a list or vector, each an unsigned 8-bit integer.

binary data representing a <PangoCoverage>

%return

Returned: a <PangoCoverage>, or #f.

a newly allocated <PangoCoverage>

n-bytes

Not passed: guile-gi gives the length of bytes.

the size of bytes in bytes

Method: coverage:get self index- ⇒ %return
Method: get self index- ⇒ %return

Determine whether a particular index is covered by self.

self

Passed: a <PangoCoverage>.

a <PangoCoverage>

index-

Passed: a 32-bit integer.

the index to check

%return

Returned: a <PangoCoverageLevel>.

the coverage level of self for character index-.

Method: coverage:max self other
Method: max self other

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.

self

Passed: a <PangoCoverage>.

a <PangoCoverage>

other

Passed: a <PangoCoverage>.

another <PangoCoverage>

Procedure: coverage:new ⇒ %return

Create a new <PangoCoverage>

%return

Returned: a <PangoCoverage>.

the newly allocated <PangoCoverage>, initialized to none with a reference count of one, which should be freed with coverage:unref.

Method: coverage:ref self ⇒ %return
Method: ref self ⇒ %return

Increase the reference count on the <PangoCoverage> by one.

self

Passed: a <PangoCoverage>.

a <PangoCoverage>

%return

Returned: a <PangoCoverage>.

self

Method: coverage:set self index- level
Method: set self index- level

Modify a particular index within self

self

Passed: a <PangoCoverage>.

a <PangoCoverage>

index-

Passed: a 32-bit integer.

the index to modify

level

Passed: a <PangoCoverageLevel>, or one of its symbols.

the new level for index-

Method: coverage:to-bytes self ⇒ bytes
Method: to-bytes self ⇒ bytes

Convert a <PangoCoverage> structure into a flat binary format.

self

Passed: a <PangoCoverage>.

a <PangoCoverage>

bytes

Returned: a bytevector.

location to store result (must be freed with byte-array:free)

n-bytes

Not returned: it is the length of bytes.

location to store size of result

Method: coverage:unref self
Method: unref self

Decrease the reference count on the <PangoCoverage> by one.

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

self

Passed: a <PangoCoverage>.

a <PangoCoverage>