PeachDrawing.Text

PeachDrawing.Text.Unicode

LineBreakOptions Struct

The tailorings CSS applies to the line breaking algorithm. The default value is Auto and Normal, which is Normal, with Dictionary: set Strictness to Strict and ComplexContext to GeneralCategory for the algorithm’s own default.

public readonly struct LineBreakOptions
Properties  
ComplexContext How text in the Complex_Context class (Thai, Lao, Khmer and Burmese, which write no spaces between words, have a word list) is broken. The default finds the words in a dictionary and allows a line to end between them; the language of the text is not read, the script is. GeneralCategory gives no opportunity inside a run of one script. WordBreak and Strictness apply on top of either choice.
Language The language of the text as a BCP 47 tag such as ja or zh-Hant-TW, or null when it is not known. Only the primary language subtag is read, without regard to case. CSS Text 3 allows some of the breaks of Normal and Loose only where the writing system is Chinese or Japanese: with any other language, or none, those breaks stay forbidden.
Strictness How strictly the characters that should not start a line are kept off it, CSS line-break.
WordBreak How the letters of a word break, CSS word-break.