Guillaume Ayoub
1882174a57
Merge branch 'master' into leader
2021-03-11 15:48:31 +01:00
Guillaume Ayoub
da1219248a
Prevent discarded boxes’ children from extending to the page bottom
2021-03-02 13:06:53 +01:00
Guillaume Ayoub
9eba07d0ac
Merge branch 'master' into line-clamp
2021-02-23 12:38:08 +01:00
Guillaume Ayoub
96051802c2
Merge branch 'line-clamp' of github.com:Kozea/WeasyPrint into line-clamp
2021-02-23 12:13:36 +01:00
Guillaume Ayoub
694a926ec0
Fix height of "continue: discard" blocks
2021-02-23 12:12:48 +01:00
Guillaume Ayoub
a156a2653a
Fix imports with url() and quotes
...
Fix #1299 . Related to Kozea/tinycss2#33 .
2021-02-21 23:30:15 +01:00
Guillaume Ayoub
dbe298827a
Don’t try to test the exact position of an overline
2021-02-18 14:10:00 +01:00
Guillaume Ayoub
02b71dd33a
Fix text decoration
...
Fix #1297 .
2021-02-18 13:57:17 +01:00
Lucie Anglade
1038c79107
Box should split with max-lines
2021-02-14 20:01:43 +01:00
Lucie Anglade
c4afd1fceb
Taller image to be sure it’s cut because of max-lines and not the end of page
2021-02-14 19:43:49 +01:00
Lucie Anglade
81dc9f48b5
Add failing tests for line-clamp
2021-02-14 19:35:38 +01:00
Lucie Anglade
a9306cc58e
Better ellipsis test
2021-02-14 19:06:57 +01:00
Lucie Anglade
d8454db295
Tests for line-clamp
2021-02-14 18:58:50 +01:00
Guillaume Ayoub
2c919858c8
Split the "text" module into submodules
...
The module was too long, and the font management was split into two different
modules. We now have everything in the "text" module.
2021-02-08 00:53:27 +01:00
Guillaume Ayoub
a90718ad50
Fix justification, letter-spacing and word-spacing
2021-02-06 17:31:32 +01:00
Guillaume Ayoub
a295a245cc
Add tests for RTL leaders
2021-01-28 00:53:04 +01:00
Guillaume Ayoub
dcdd5575d5
Add tests for leaders
2021-01-23 18:50:52 +01:00
Guillaume Ayoub
8967a387d4
Use f-strings when possible
2021-01-21 12:42:25 +01:00
Guillaume Ayoub
56e17d9d6e
Remove useless CLI options
2021-01-20 15:41:59 +01:00
Guillaume Ayoub
b2c7463701
Include witdh/height when calculating auto margins of absolute boxes
...
Fix #1264 .
2021-01-11 13:14:55 +01:00
Guillaume Ayoub
59b4e5a9e9
Remove specific license for tests
...
After discussing with Ghostscript’s owners, it’s not necessary to change the
license of the whole test suite.
2020-12-31 23:30:52 +01:00
Guillaume Ayoub
c35a629032
Don’t try to get an earlier page break between columns.
...
Fix #1191 .
2020-12-22 16:51:27 +01:00
Guillaume Ayoub
626177bd20
Include padding, border, padding when calculating inline-block width
...
Fix #1235 .
2020-12-14 07:12:41 +01:00
Guillaume Ayoub
85cb892b11
Fix rounding glitches in tests
2020-12-13 20:30:15 +01:00
Guillaume Ayoub
7e7811d164
Add error message for pixel size assert
2020-12-13 15:52:33 +01:00
Guillaume Ayoub
a8e900110d
Don’t render layouts with no size
2020-12-13 15:07:35 +01:00
Guillaume Ayoub
118f88d7ce
Clean test configuration
2020-12-13 15:07:27 +01:00
Guillaume Ayoub
3288fa1f2b
Use a temporary file for ghostscript
2020-12-12 23:05:43 +01:00
Guillaume Ayoub
8fc505afdb
Try to always read input in blocks
2020-12-12 22:54:57 +01:00
Guillaume Ayoub
e8edd41d74
Fix parameter order for tests
2020-12-12 22:17:40 +01:00
Guillaume Ayoub
43552c15be
Back to normal…
2020-12-12 21:40:50 +01:00
Guillaume Ayoub
56d7dc4f64
Use neutral gsc executable name
2020-12-12 16:38:24 +01:00
Guillaume Ayoub
ca3e9ab752
Launch 32bit version of ghostscript on Windows
2020-12-12 16:34:06 +01:00
Guillaume Ayoub
c58cd4e7ca
Try to use explicit commandline-based ghostscript on Windows
2020-12-12 16:21:02 +01:00
Guillaume Ayoub
07e3673503
Print pdf on errors
2020-12-12 15:59:31 +01:00
Guillaume Ayoub
29666609f4
Print various things on errors
2020-12-12 15:37:40 +01:00
Guillaume Ayoub
8defa11c47
Make tests fail when an error is reported by GhostScript
2020-12-12 15:30:09 +01:00
Guillaume Ayoub
85cfc933c6
Mark one more failing test as xfail
2020-12-12 01:11:24 +01:00
Guillaume Ayoub
ddebd37f14
Don’t mix stdout and stderr for tests
2020-12-12 00:55:44 +01:00
Guillaume Ayoub
b7217e034f
Capture stderr for tests
2020-12-12 00:42:09 +01:00
Guillaume Ayoub
05bb8bdc25
Really fix test
2020-12-11 23:37:54 +01:00
Guillaume Ayoub
97cd13fc54
Try to fix test relying on default font
2020-12-11 23:27:11 +01:00
Guillaume Ayoub
921d8f1973
Fix tests failing because of URL case
2020-12-11 00:36:04 +01:00
Guillaume Ayoub
81f73ead2e
Use the weasyprint.otf font everywhere
...
Pango has a PANGO_SCALE value of 1024, making it really happy when fonts have a
cadratin value of 1024. Unfortunately, AHEM uses 1000, leading to rounding
errors.
We now use weasyprint.otf everywhere, with 1024. It breaks the exact 20/80
ratio between descent and ascent values, so that we need to use approximate
values for tests relying on an exact position of the baseline.
All the tests should pass, or be explicitely marked as failing.
2020-12-11 00:22:33 +01:00
Guillaume Ayoub
3798b220d6
Mark expected failing tests as xfail
2020-12-10 23:05:44 +01:00
Guillaume Ayoub
30c21d92e9
Fully remove Cairo from documentation and code
2020-12-10 22:47:27 +01:00
Guillaume Ayoub
4f82a4a34e
Packaging!
...
Related to #1247 , #1232 .
2020-12-06 20:19:59 +01:00