Package: pango

Function pango:cairo-context-resolution

Lambda List

pango:cairo-context-resolution (context)

Syntax

(pango:cairo-context-resolution context) => dpi
(setf (pango:cairo-context-resolution context) dpi)

Arguments

context -- a pango:context object, from a PangoCairo font map
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, a 0 or negative value means to use the resolution from the font map

Details

The pango:cairo-context-resolution function gets the resolution for the Pango context. The (setf pango:cairo-context-resolution) function sets the resolution. 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).
 

See also

2025-1-1