Package: pango

Function pango:cairo-font-map-resolution

Lambda List

pango:cairo-font-map-resolution (fontmap)

Syntax

(pango:cairo-font-map-resolution fontmap) => dpi
(setf (pango:cairo-font-map-resolution fontmap) dpi)

Arguments

fontmap -- a pango:cairo-font-map object
dpi -- a number coerced to a double float for the resolution in dots per inch, physical inches are not actually involved, the terminology is conventional

Details

Gets or sets the resolution for the font map. This is a scale factor between points specified in a pango:font-description instance and Cairo units. The default value is 96, meaning that a 10 point font will be 13 units high, that is (10 * 96 / 72 = 13.3).

Examples

(pango:cairo-font-map-resolution (pango:cairo-font-map-default))
=> 96.0d0    
 

See also

2025-08-24