set_line_spacing


Description:

[ Version ( since = "1.44" ) ]
public void set_line_spacing (float factor)

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 [ [email protected]_spacing] is ignored.

If factor is zero (the default), spacing is applied as before.

Note: for semantics that are closer to the CSS line-height property, see [[email protected]_line_height_new].

Parameters:

this

a `PangoLayout`

factor

the new line spacing factor




2022 vala-language.org