11 Commits

Author SHA1 Message Date
Benjamin Bloomfield
eecfb4c97a
Fix measuring text when OpenType features are passed in to .text() (#1492)
* Update text.js

to fix measuring text when opentype features are passed in to .text()

* added simple test

* Update CHANGELOG.md

---------

Co-authored-by: Libor M. <liborm85@gmail.com>
2024-12-25 07:45:56 +01:00
Devon Govett
f238d1b107
Bump fontkit and linebreak deps (#1367)
* Bump fontkit and linebreak deps

* Bump fontkit to 2.0.0

* Bump

* Drop old node versions

* Bump testing dependencies

* Update pdfjs

* fix jest to compatibility with restructure, update fontkit, refresh snapshots

* Update CHANGELOG.md

---------

Co-authored-by: Libor M. <liborm85@gmail.com>
2024-12-16 08:36:25 +01:00
David
ffbbee597a
#1517 Fix ordered lists (#1568)
* adds test cases for ordered lists

* fixes broken labels for ordered lists (#1517)

* adds test for sub-lists (ordered and unordered)

* update changelog for fix of #1517

---------

Co-authored-by: David <filecage@users.noreply.github.com>
2024-12-14 10:13:02 +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
David
ebf404e4ae
#1486 fix newline items in lists (#1487)
* adds test case with line-breaks in list items

reproduces #1486

* use LineBreaker per item and only draw `firstLine` once

fixes #1486

* boyscout: consistent naming

* boyscout: test multiple line break versions

* update changelog for fix of #1486

---------

Co-authored-by: David <filecage@users.noreply.github.com>
2023-12-22 09:49:26 -03:00
Luiz Américo
5bbd9a18cb
Support Jpeg Exif Orientation (#1482)
Co-authored-by: Franklin Strube <fstrube@morevang.com>
Co-authored-by: Luiz Américo Pereira Câmara <blikblum@users.noreply.github.com>
2023-12-03 07:48:00 -03:00
koooge
d81f13ba2d
test: CI node16 and 18 (#1426)
* test: CI node16 and 18

Signed-off-by: koooge <koooooge@gmail.com>

* chore: Replace jest-screenshot with jest-image-snapshot

Signed-off-by: koooge <koooooge@gmail.com>

* test: git mv snapshots

Signed-off-by: koooge <koooooge@gmail.com>

* test: Minor-upgrade canvas

Signed-off-by: koooge <koooooge@gmail.com>

---------

Signed-off-by: koooge <koooooge@gmail.com>
2023-03-07 09:30:34 -03:00
Libor M
529acf4f25 fix tests 2021-07-13 13:31:15 +02:00
Subhi Al Hasan
6338314daf
Allow applying 'underline' and 'strike' text styling together on a text (#1253)
Co-authored-by: Subhi Al Hasan <subhi.al.hasan@freiheit.com>
2021-05-28 13:51:12 -03:00
Ben Schmidt
5df96274a6 Fix import syntax (at least for my Node version...). 2021-01-15 16:43:49 -03:00
Luiz Américo
55732ab9a9
Rework integrations tests to compare pdf screenshots instead of raw content (#1162)
* Rework integrations tests to compare pdf screenshots instead of raw content

* Update documentation and configuration related to integration/visual tests
2020-09-09 17:33:28 -03:00