Skip to content

API reference / Common / Engine types / TextLineSpacing

Type Alias: TextLineSpacing ​

ts
type TextLineSpacing = 
  | {
  percent: number;
}
  | {
  exact: number;
}
  | {
  atLeast: number;
};

A paragraph's line spacing rule (a:lnSpc / w:spacing@line + @lineRule) — the three Word models. Unspecified defaults to single spacing, Percent(1.0).

How a rule turns into a line box is the layout's spacing model (compute_line_metrics), where the line height model branches what "single spacing" means.