Package: pango

Function pango-layout-spacing

Lambda List

pango-layout-spacing (layout)

Syntax

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

Arguments

layout -- a pango-layout object
spacing -- an integer with the amount of spacing

Details

Accessor of the spacing in Pango units of the Pango layout.

The function pango-layout-spacing gets the amount of spacing in Pango units between the lines of the layout. The function (setf pango-layout-spacing) sets the amount of spacing. When placing lines with spacing, Pango arranges things so that
line2.top = line1.bottom + spacing  

Note

Since 1.44, Pango defaults to using the line height (as determined by the font) for placing lines. The spacing set with this function is only taken into account when the line-height factor is set to zero with the function pango-layout-line-spacing.
 

See also

2021-1-19