public enum HyphenModeWhether a soft hyphen may end a line. CSS Text 4 § 6.1's hyphens.
Remarks
⚠ A third enum beside WordBreakMode and TextWrapMode for the reason those two are separate from each other: it is a different stage and it composes. word-break decides whether two letters may be parted; this decides whether one character the author put there to say so is honoured, and the two are asked at the same moment about different things.
⚠ There are only two members and CSS has three, which is the gap stated rather than hidden. hyphens: auto needs a per-language Liang pattern set to choose a hyphenation from. No utility class emits it, so it cannot arrive here.
⚠ Half of that refusal's stated reason has expired, and it is written here rather than left standing. This paragraph used to say that a language to choose the pattern set with was missing too — that TextShaper left HarfBuzz's language unset on purpose, so the input was missing as well as the algorithm. It is not any more: UiElement.Language and UiElement.ResolvedLanguage carry a BCP-47 tag that inherits by tree, and TextShaper.ShapeRun takes it. The shaper still refuses to read the process locale, which is the property being protected and was never the blocker. What is left is the pattern data alone — 30-100 kB per language, a licensing and a shipping-shape decision, not a missing model.
Fields and properties (2)
ManualA soft hyphen offers a break and is drawn when one is taken. CSS's manual.
NoneA soft hyphen is inert. CSS's hyphens: none.
Used by (3)
- LineWrapperVixen.Ui.Text
- UiDocumentVixen.Ui
- UiElementVixen.Ui