Package: pango

Function pango:context-round-glyph-positions

Lambda List

pango:context-round-glyph-positions (context)

Syntax

(pango:context-round-glyph-positions context) => setting
(setf (pango:context-round-glyph-positions context) setting)

Arguments

context -- a pango:context object
setting -- a boolean whether to round glyph positions

Details

The pango:context-round-glyph-positions function returns whether font rendering with this Pango context should round glyph positions and widths. The (setf pango:context-round-glyph-positions) function sets whether font rendering with this Pango context should round glyph positions and widths to integral positions, in device units.

This is useful when the renderer cannot handle subpixel positioning of glyphs. The default value is to round glyph positions, to remain compatible with previous Pango behavior.

Since 1.44
 

See also

#2024-2-23