Package: pango

Function pango:font-map-serial

Lambda List

pango:font-map-serial (fontmap)

Arguments

fontmap -- a pango:font-map object

Return Value

The unsigned integer with the current serial number of fontmap.

Details

Returns the current serial number of fontmap. The serial number is initialized to a small number larger than zero when a new font map is created and is increased whenever the font map is changed. It may wrap, but will never have the value 0. Since it can wrap, never compare it with "less than", always use "not equals".

The font map can only be changed using backend-specific API, like changing font map resolution.

This can be used to automatically detect changes to a Pango font map, like in a pango:context object.
 

See also

2024-3-6