Package: pango

Function pango-font-description-size

Lambda List

pango-font-description-size (desc)

Syntax

(pango-font-description-size desc) => size
(setf (pango-font-description-size desc) size)

Arguments

desc -- a pango-font-description instance
size -- an integer with the size of the font in points, scaled by +pango-scale+

Details

Accessor of the size field of a font description.

The function pango-font-description-size gets the size field of a font description in points or device units. The function (setf pango-font-description-size) sets the size field. This is mutually exclusive with the function pango-font-description-set-absolute-size.

A size value of 10 * +pango-scale+ is a 10 point font. The conversion factor between points and device units depends on the system configuration and the output device. For screen display, a logical DPI of 96 is common, in which case a 10 point font corresponds to a 10 * (96 / 72) = 13.3 pixel font. Use the function pango-font-description-set-absolute-size if you need a particular size in device units.

You must call the function pango-font-description-size-is-absolute to find out which is the case. Returns 0 if the size field has not previously been set or it has been set to 0 explicitly. Use the function pango-font-description-set-fields to find out if the field was explicitly set or not.
 

See also

*2021-1-14