mirror of
https://github.com/fjvallarino/monomer.git
synced 2024-09-19 15:57:11 +03:00
7c6777decd
* feat: add the `lineBreak` option This commit adds `lineBreak` option to specify how to break texts into lines. `OnSpaces` is the default and breaks texts at spaces. `OnCharacters` breaks texts at characters, even in the middle of a word. This is useful for handling CJK texts, though it does not follow [the line breaking rules](https://en.wikipedia.org/wiki/Line_breaking_rules_in_East_Asian_languages). * fix: implement for `TextStyle` Not to create instance of each widget. * test: add for `OnCharacters` * perf: make `fitLineToW` faster |
||
---|---|---|
.. | ||
Monomer | ||
Spec.hs |