12 Commits

Author SHA1 Message Date
Jake Holland
40a0f383a7
Fix precision rounding issues in LineWrapper (#1583)
Handle JS quirks with large decimal precision checks resulting from the calculations of next lines in the LineWrapper
2025-01-11 13:16:17 +01:00
Kevin Hendel
1b678c3e3d
Indent after linebreak (#879)
* add indentAllLines option to indent all lines of a paragraph instead of only the first one

* update comments

* Update CHANGELOG.md

---------

Co-authored-by: Libor M. <liborm85@gmail.com>
2024-12-27 15:52:48 +01:00
Libor M.
133a321a56 Add support to scale text horizontally
inspired by #445
2024-12-27 15:34:22 +01:00
Rudolf Biczok
1f70b450a2
Replace soft hyphen with visible hyphen if line break demands it (#1488)
* Replace soft hyphen with visible hyphen if line break demands it

* Add changelog entry for #457

* Add soft hyphen support in readme
2024-01-02 08:00:59 -03:00
Ben Schmidt
c2ec121ab8 Support automatic marking and structure construction for text. 2021-01-15 16:43:49 -03:00
Ben Schmidt
ef5e52b2ad Support marking content. 2021-01-15 16:43:49 -03:00
Luiz Américo
44e265bc2a
Merge pull request #1023 from URSELF-FR/master
Fix infinite loop when lineWidth is smaller than width of a character
2019-11-14 12:52:14 -03:00
VincentGuinaudeau
acf318b87c comments, test and changelog entry for fix when a character is too bigger than the width of the text. 2019-11-14 12:08:04 +01:00
Luiz Américo
50dbed9401 Remove redundant value existence checks 2019-09-28 21:21:30 -03:00
VincentGuinaudeau
17e08a66dd Fix infinite loop when lineWidth is smaller than width of a character. Not sure about what to do in this case yet. 2019-09-11 14:57:51 +02:00
Luiz Américo
a6af76467c Add prettier npm script and run it in *.js files 2019-01-07 20:51:06 -03:00
Luiz Américo
83f5f72431 Convert to EcmaScript (ES6+) (#859) 2018-11-29 08:14:45 -08:00