Open EpicEricEE opened 2 weeks ago
While the runt cost is high, the cost of the resulting extremely awful word spacing on the first line may be bad enough to offset that.
(I'm only speculating.)
While the runt cost is high, the cost of the resulting extremely awful word spacing on the first line may be bad enough to offset that.
When using an equally long monosyllabic word (e.g. "scratched" instead of "malicious"), the awful word spacing is accepted, so I think it has something to do with hyphenation.
Ah yeah, hyphenation makes sense. When there is a hyphenation opportunity, it's not considered unbreakable
by the layout engine and does not count as a runt.
Description
When setting the runt cost to an extremely high value, I would expect there to always be at least two words in the last line. However, it seems that when the last word is so long that it contains a hyphenation opportunity, it doesn't "glue together" the last two words, but instead the last two parts of the hyphenated word. For example:
(Also tested after 711a2d88079f0b3929bbb6be97bda52139e22aa1)
Reproduction URL
No response
Operating system
Web app
Typst version