1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-05 00:21:15 +03:00
Commit Graph

4179 Commits

Author SHA1 Message Date
Guillaume Ayoub
86796ed044 Use style class instead of computer dictionary 2021-05-07 22:39:57 +02:00
Guillaume Ayoub
b17b08dae7 Don’t crash with ex units in spacing properties 2021-05-07 16:38:51 +02:00
Guillaume Ayoub
bec7c37dc9 Minor cleanups for lazy style 2021-05-07 15:48:44 +02:00
Guillaume Ayoub
8504cfd65c Calculate CSS properties on demand
Instead of calculating all the CSS properties for each element, we only get
them on demand. It saves A LOT of time and memory.

This implementation is just a quick and dirty hack that make tests pass. Even
with this suboptimal code, we get really good results.

Work in progress, has to be improved and cleaned.
2021-05-06 19:32:17 +02:00
Guillaume Ayoub
2d19becf19 Improve SVG support 2021-04-30 18:13:08 +02:00
Guillaume Ayoub
4f35e063d6 Add TODO for inline svg tags 2021-04-29 22:38:35 +02:00
Guillaume Ayoub
3818df4b96 Use a "more elegant way" to handle stroke-dasharray="none"
Related to #1346.
2021-04-29 17:54:04 +02:00
Guillaume Ayoub
264246959b
Merge pull request #1346 from pbregener/svg-stroke-dasharray-none
SVG: Allow stroke-dasharray:none
2021-04-29 17:45:26 +02:00
Guillaume Ayoub
9f38063379 Use page coordinates when no bounding box is found for opacity 2021-04-29 16:52:00 +02:00
pbregener
06ef510ddf
SVG: Allow stroke-dasharray:none
Fixes a crash when a SVG contains
`style="stroke-dasharray:none"`
2021-04-29 11:42:46 +02:00
Guillaume Ayoub
26cc19ce16 Fix double x/y transform for use tags
Fix #1345.
2021-04-28 21:57:15 +02:00
Guillaume Ayoub
e126beb5fa Comment and fix default stylesheets 2021-04-28 21:56:16 +02:00
Guillaume Ayoub
b476f2f606 Re-add deprecated CLI options
Related to #1232.
2021-04-28 15:15:35 +02:00
Guillaume Ayoub
becd494f91 Add an option to optimize fonts
Fix #359.
2021-04-28 14:55:52 +02:00
Guillaume Ayoub
c931d1639b Remove useless xfail 2021-04-28 14:45:53 +02:00
Guillaume Ayoub
71c49b58d1 Don’t crash when UA stylesheets can’t be read
That’s the case when flit builds packages and tries to get the package version.
2021-04-27 22:51:11 +02:00
Guillaume Ayoub
c76e1a3ba6 Use pkgutil instead of manual ROOT to load data
It avoids useless code and should work with all the packagers.
2021-04-27 22:11:27 +02:00
Guillaume Ayoub
6069fcd61a Remove unused code 2021-04-26 18:03:59 +02:00
Guillaume Ayoub
51c673b343 Use almost the same code for gradients and patterns 2021-04-26 17:59:20 +02:00
Guillaume Ayoub
3ec32732aa Fix gradients and tests 2021-04-26 17:36:18 +02:00
Guillaume Ayoub
f804d59cf3 Fix font flags
Related to #630.
2021-04-26 15:06:35 +02:00
Guillaume Ayoub
5c82013c66 Update required pydyf version 2021-04-26 11:34:04 +02:00
Guillaume Ayoub
d1c1e9e69f Fix tests 2021-04-26 11:31:07 +02:00
Guillaume Ayoub
3de9ff408d Fix lint 2021-04-26 11:31:07 +02:00
Lucie Anglade
877440f49f
Merge pull request #1341 from jj-jitterbit/patch-1
Update support.rst
2021-04-23 00:18:36 +02:00
John Jackson
34a1d5690a
Update support.rst
Fix typos.
2021-04-22 12:26:16 -07:00
Guillaume Ayoub
1d34ef070f Add specific dependencies section in changelog
And talk about Flit too…
2021-04-22 13:11:40 +02:00
Guillaume Ayoub
e983d88284 Version 53.0b1 2021-04-22 12:56:13 +02:00
Guillaume Ayoub
eae3540c55 Merge branch 'pydyfsvg' 2021-04-22 12:29:04 +02:00
Guillaume Ayoub
79bb88932c Fix text rotation 2021-04-20 17:21:40 +02:00
Guillaume Ayoub
66f9720f9b Allow strokes for text 2021-04-20 17:15:17 +02:00
Guillaume Ayoub
a4a5342bfb Fix tspan 2021-04-20 17:05:05 +02:00
Guillaume Ayoub
b44bf650bd Forget shapes that are not drawn 2021-04-20 16:53:21 +02:00
Guillaume Ayoub
82047b08e1 Fix text position 2021-04-20 16:44:31 +02:00
Guillaume Ayoub
8cf54c56c6 Remove TODOS about PDF checks in tests
Testing PNG rendering is enough
2021-04-20 15:40:39 +02:00
Guillaume Ayoub
a90119d14a Remove TODO 2021-04-20 15:36:30 +02:00
Guillaume Ayoub
fdcdcef006 Fix test 2021-04-20 08:48:44 +02:00
Guillaume Ayoub
dc861c785a Add more tests for SVG images 2021-04-19 17:52:25 +02:00
Guillaume Ayoub
111191f7bc Rename folders and imports in tests 2021-04-19 17:15:53 +02:00
Guillaume Ayoub
6bf74c7de2 Remove unneeded line breaks 2021-04-18 19:11:44 +02:00
Guillaume Ayoub
7e164db984 Use colorsys instead of home-made color conversion 2021-04-18 19:11:23 +02:00
Guillaume Ayoub
0c0367b2f2 Use "stream" instead of "context" when possible
We already have stacking contexts and layout contexts, there’s no need to use
"context" for "streams-with-context" too.
2021-04-18 18:50:11 +02:00
Guillaume Ayoub
4c56bb0851 Fix text position 2021-04-18 18:10:40 +02:00
Guillaume Ayoub
e00e027c9c Fix SVG arcs 2021-04-18 18:01:56 +02:00
Guillaume Ayoub
3fc7273756 Test SVG bounding boxes 2021-04-18 17:20:07 +02:00
Lucie Anglade
f27a37c943 Test paths A a 2021-04-18 17:15:56 +02:00
Guillaume Ayoub
541ed24472 Test SVG images 2021-04-18 16:01:26 +02:00
Guillaume Ayoub
0935813e75 Don’t handle text on a path 2021-04-17 18:30:18 +02:00
Guillaume Ayoub
c3e05dd510 Fix test for Ss path 2021-04-17 18:20:54 +02:00
Lucie Anglade
89808b3aac Merge branch 'pydyfsvg' of github.com:Kozea/WeasyPrint into pydyfsvg 2021-04-17 18:16:31 +02:00