Package: pango

Function pango-context-round-glyph-positions

Lambda List

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

Syntax

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

Arguments

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

Details

The function pango-context-round-glyph-positions returns whether font rendering with this context should round glyph positions and widths.

The function (setf pango-context-round-glyph-positions sets whether font rendering with this 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

2021-1-3