Skip to main content

text_split_points

Function text_split_points 

Source
pub fn text_split_points(line_count: usize, line_height: f64) -> Vec<f64>
Expand description

Compute valid split positions (y-offsets) for multiline text.

XFA Spec 3.3 §8.7 (p291): text may be split between lines only. Returns the y-position of each line boundary (after line 1, after line 2, …). A text with N lines has N−1 split points.