Package: pango

Function pango-cairo-font-map-resolution

Lambda List

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

Arguments

fontmap -- a pango-cairo-font-map object
dpi -- a double float with the resolution in "dots per inch", physical inches are not actually involved, the terminology is conventional

Details

Accesor of the resolution of a Cairo font map in "dots per inch".

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

Example

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

See also

2021-1-19