Package: pango

Function pango-layout-line-spacing

Lambda List

pango-layout-line-spacing (layout)

Syntax

(pango-layout-line-spacing layout) => factor
(setf (pango-layout-line-spacing layout) factor)

Arguments

layout -- a pango-layout object
factor -- a float with the new line spacing factor

Details

Accessor of the line spacing for the Pango layout.

The function pango-layout-line-spacing gets the value of the line spacing. The function (setf pango-layout-line-spacing) sets a factor for line spacing. Typical values are: 0, 1, 1.5, 2. The default values is 0.

If factor is non-zero, lines are placed so that
baseline2 = baseline1 + factor * height2  
where height2 is the line height of the second line (as determined by the font(s)). In this case, the spacing set with the function pango-layout-spacing is ignored.

If factor is zero, spacing is applied as before.

Since 1.44
 

See also

2021-1-15