pub struct LineBreakParams {Show 13 fields
pub available_width: f64,
pub ind_left: f64,
pub ind_right: f64,
pub ind_first_line: f64,
pub ind_hanging: f64,
pub tab_stops: Vec<TabStop>,
pub line_spacing: LineSpacing,
pub jc: Option<Align>,
pub wrap: bool,
pub line_prefix_widths: Vec<f64>,
pub line_suffix_widths: Vec<f64>,
pub default_tab_interval_pt: f64,
pub clamp_tabs_past_margin: bool,
}Expand description
Parameters for line breaking.
Fields§
§available_width: f64Total available width (page width minus margins).
ind_left: f64Left indentation in points.
ind_right: f64Right indentation in points.
ind_first_line: f64First line indent in points (positive = indent, 0 if hanging).
ind_hanging: f64Hanging indent in points (positive = text lines indented relative to first).
tab_stops: Vec<TabStop>Tab stops.
line_spacing: LineSpacingLine spacing rule and value.
jc: Option<Align>Paragraph justification.
wrap: boolWhether width overflow may create automatic line breaks.
line_prefix_widths: Vec<f64>Extra width kept clear at the start of individual lines, by line index.
This is how a floating drawing pushes text aside. An empty vector, the default, reserves nothing and reproduces unwrapped line breaking exactly.
line_suffix_widths: Vec<f64>Extra width kept clear at the end of individual lines, by line index.
default_tab_interval_pt: f64Interval between implicit tab stops, in points.
Word calls this the default tab stop. 36.0, half an inch, is the
value used when a document says nothing.
clamp_tabs_past_margin: boolWhether a tab stop past the right margin moves to the end of the line.
Word 2013 and later do this, in a document whose w:compatibilityMode
is 15. Earlier versions keep such a stop, and the text after a stop at
or past the margin then runs on past it, which false gives.