monomer/test/unit
Hiroki Tokunaga 7c6777decd
Add the lineBreak option (#86)
* 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
2022-02-24 14:37:31 -03:00
..
Monomer Add the lineBreak option (#86) 2022-02-24 14:37:31 -03:00
Spec.hs Add optionButton and toggleButton widgets (#36) 2021-10-28 15:23:42 -03:00