Guillaume Ayoub
c90886c58a
Don’t crash when footnote area has no style
2021-11-23 21:31:02 +01:00
Guillaume Ayoub
2da0a6c9cf
Update vertical max position when displaying footnotes
2021-11-23 16:18:52 +01:00
Guillaume Ayoub
9f61ce969b
Put markers in footnotes
2021-11-23 14:02:26 +01:00
Guillaume Ayoub
fe5fa64f57
Display footnotes at the bottom of the page
2021-11-23 13:37:53 +01:00
Guillaume Ayoub
1c3fd972bd
Store footnotes in the layout context
2021-11-19 11:39:47 +01:00
Guillaume Ayoub
b36671b684
Allow CSS to set properties for footnote-call pseudo-elements
2021-11-15 16:22:29 +01:00
Guillaume Ayoub
da1cd5e74d
Create and update footnote counter
2021-11-15 15:43:51 +01:00
Guillaume Ayoub
20fdc45ccc
Replace footnotes by footnote-calls
2021-11-15 15:00:59 +01:00
Guillaume Ayoub
75e343591d
Remove footnotes from the flow
2021-11-15 11:54:26 +01:00
Guillaume Ayoub
88e589bcdc
Allow the "footnote" value for "float"
2021-11-15 11:21:09 +01:00
Guillaume Ayoub
aafb119e29
Copy boxes when using them in stacking contexts
...
If we don’t copy the boxes, rendering pages twice will fail because creating
stacking contexts can change the boxes’ children.
Fix #1473 .
2021-11-14 19:41:10 +01:00
Guillaume Ayoub
046f27bf98
Split blocks in blocks when possible
...
Related to #1476 .
2021-11-14 13:25:04 +01:00
Guillaume Ayoub
dd783efaa9
Merge branch '53.x'
2021-11-14 10:27:11 +01:00
Guillaume Ayoub
8441685ee4
Version 53.4
2021-11-14 10:21:44 +01:00
Guillaume Ayoub
7e7b1d7e91
Include the font hash to create the font name
...
Using the font hash avoids collisions when we have the same font description
but not the same hash, for example when the same font is used in multiple HTML
instances.
It could be possible to only store the font once, this solution is not optimal
but this more reliable.
Fix #1489 .
2021-11-13 19:17:24 +01:00
Guillaume Ayoub
43d0e5442d
Include the font hash to create the font name
...
Using the font hash avoids collisions when we have the same font description
but not the same hash, for example when the same font is used in multiple HTML
instances.
It could be possible to only store the font once, this solution is not optimal
but this more reliable.
Fix #1489 .
2021-11-13 19:05:31 +01:00
Guillaume Ayoub
8a8bfa31fe
Don’t continue to render tables when a row is split
2021-11-13 16:45:31 +01:00
Guillaume Ayoub
183d160663
Remove top and bottom borders from tables when they’re split
2021-11-13 16:44:39 +01:00
Guillaume Ayoub
f46e254107
Fix column height with column-span content
...
Fix #1094 .
2021-11-10 21:20:30 +01:00
Guillaume Ayoub
ed20d94c49
Don’t restore current point after empty paths
...
See Kozea/CairoSVG#346 .
2021-11-06 09:23:54 +01:00
Guillaume Ayoub
592b621999
Fix images embedded from multiple pages
...
Fix #1486 .
2021-11-05 22:11:09 +01:00
Guillaume Ayoub
ce44a72318
Fix images embedded from multiple pages
...
Fix #1486 .
2021-11-05 21:59:09 +01:00
Guillaume Ayoub
dce0e56aeb
Merge branch '53.x'
2021-11-04 09:36:38 +01:00
Guillaume Ayoub
e386bc314c
Merge branch '53.x' of github.com:Kozea/WeasyPrint into 53.x
2021-11-04 09:35:24 +01:00
Guillaume Ayoub
f3936ca856
Use better approximations for font ascent and descent values in SVG
...
It’s hard to get real values, because it would require to access the font
information. But we can at least use values related to the font size, so that
alignment doesn’t get totally wrong.
Related to #1485 .
2021-11-04 09:35:13 +01:00
Guillaume Ayoub
fd4711edbe
Handle quotes in url(…) syntax
...
Related to #1485
2021-11-04 09:35:08 +01:00
Guillaume Ayoub
ecedc166b7
Use only one function for PNG conversion
2021-10-30 12:31:26 +02:00
Guillaume Ayoub
766997e94b
Merge branch 'master' of github.com:Kozea/WeasyPrint
2021-10-30 11:54:06 +02:00
Guillaume Ayoub
c3136ad5c6
Merge pull request #1481 from aschmitz/png-reencode
...
change: encode non-JPEG images as PNGs instead of JPEG2000 images
2021-10-30 11:53:39 +02:00
Guillaume Ayoub
222677db55
Allow parallel flows in tables
2021-10-29 19:51:01 +02:00
Guillaume Ayoub
bd753560b4
Remove float width from inline box available width
2021-10-29 16:06:13 +02:00
Guillaume Ayoub
511033471a
Merge remote-tracking branch 'origin/53.x'
2021-10-29 16:04:02 +02:00
aschmitz
730d4f3221
change: encode non-JPEG images as PNGs instead of JPEG2000 images
...
This uses Pillow to re-encode any non-JPEG image as a PNG, then inline that
image's IDAT chunks as a FlateDecode value, which allows us to reuse the work
from the PNG encoder. This means we'll reencode some PNGs we could have passed
through directly, but that could be changed later. Alpha layers continue to be
handled separately, as appears to be required by the PDF spec.
2021-10-29 00:36:04 -05:00
Lucie Anglade
abd54c4bd4
Set SVG ratio when width and height are 0
2021-10-28 11:21:37 +02:00
Guillaume Ayoub
a149af9aaf
Merge branch '53.x'
2021-10-14 16:23:46 +02:00
Guillaume Ayoub
eebb6e5d27
Fix typo in user-agent stylesheet
...
Fix #1471 .
2021-10-14 16:22:57 +02:00
Guillaume Ayoub
482dc6bf1e
Merge branch '53.x'
2021-10-13 22:16:07 +02:00
Guillaume Ayoub
0524421ec1
Only enable letter- and word-spacing when needed
...
Enabling letter-spacing with a value of 0 breaks ligatures, and probably other
typography features.
Fix #1469 .
2021-10-13 22:11:58 +02:00
Guillaume Ayoub
833afb68df
Remove original_text attribute
...
This "hack" was introduced to ignore the text-transform property for bookmarks.
Now that the whitespace management logic is done after the box creation (just
before building the bookmark label), we can do the same for the text
transformation (just after building the bookmark label).
Related to #607 and #137 .
2021-10-13 21:26:49 +02:00
Guillaume Ayoub
e5beff677a
Process whitespaces as soon as box children are set
...
This early process enables properties with <content-list> values (string-set,
bookmark-label, etc.) to be defined using whitespace-processed strings.
Fix #607 .
2021-10-13 09:48:39 +02:00
Guillaume Ayoub
8ff7ed9ab4
Add missing TODO
2021-10-04 13:24:28 +02:00
Guillaume Ayoub
35ab45fbba
Merge branch '53.x'
2021-10-03 10:19:46 +02:00
Guillaume Ayoub
ab3ff79bd7
Fix patterns
2021-10-03 10:19:31 +02:00
Guillaume Ayoub
ab631cd596
Merge branch '53.x'
2021-10-02 17:39:15 +02:00
Guillaume Ayoub
f87e1cbe1b
Use SVG width/height as inner size when no viewBox is given
...
Fix #1455 .
2021-10-02 17:38:43 +02:00
Guillaume Ayoub
313fb3a7f0
Remove deprecated options
2021-09-22 18:51:49 +02:00
Guillaume Ayoub
754eb8f0a5
Don’t pass useless resume_at
2021-09-20 20:01:46 +02:00
Guillaume Ayoub
ca1d40ce0e
Split early break function for inline blocks waiting children
2021-09-20 19:48:16 +02:00
Guillaume Ayoub
6092f15a6e
Remove workaround for older versions of Pango
...
Related to #614 .
2021-09-20 18:27:28 +02:00
Guillaume Ayoub
41435b114f
Split out of flow rendering for inlines
2021-09-20 17:58:37 +02:00