Table of Contents

Property CompressesJustifiedSpaces

Namespace
DocWright.Layout
Assembly
DocWright.Layout.dll

CompressesJustifiedSpaces

Gets whether a justified line may be broken tighter than its natural width, taking one more word and compressing its inter-word spaces to fit.

public bool CompressesJustifiedSpaces { get; }

Property Value

bool

Remarks

False is the default and the behaviour of every mode below 15, including a document that declares no compatibilityMode at all: such a line simply wraps early. True is what Word does at mode 15, and it is what Word's HTML import produces. Measured as WQ-0025 across modes 11, 12, 14, 15 and absent on .docx files differing in that one element and nothing else.

The compression itself is bounded twice — a quarter of each space, and half the stretch the looser break would have needed — so this flag admits the rule rather than being the rule. LayoutEngine owns both bounds.