Package: gdk

Accessor gdk-screen-resolution

Lambda List

gdk-screen-resolution (object)

Syntax

(gdk-screen-resolution object) => dpi
(setf (gdk-screen-resolution object) dpi)

Arguments

object -- a gdk-screen object
dpi -- a double float with the resolution in "dots per inch"

Details

Accessor of the resolution slot of the gdk-screen class.

The gdk-screen-resolution slot access function gets the resolution for font handling on the screen, or -1 if no resolution has been set. The (setf gdk-screen-resolution) slot access function sets the resolution for font handling on the screen.

This is a scale factor between points specified in a pango-font-description structure and Cairo units. The default value is 96, meaning that a 10 point font will be 13 units high (10 * 96 / 72 = 13.3).
 

See also

2021-12-13