Paint rules and frames as native PDF rectangles

This commit is contained in:
gloamxun committed 2026-10-19 14:04:02 +08:00
1 parent 4aa1714923
commit be6f8859c2
36 files changed
+8967 -53

No files matched your search

+3 -1
View File
@@ -302,7 +302,9 @@ every line is centered without justification (natural spaces), so
`\rule[raise]{width}{height}` is rendered as a filled rectangle in both the
PDF and the SVG preview, including raised and dropped rules; a zero-thickness
rule reserves space without painting ink. `\fbox{...}` is an inline framed box:
rule reserves space without painting ink. PDF rectangles are native path operators
(vendored genpdf `fill_rect`/`draw_rect`), so rules and frames no longer create
image XObjects. `\fbox{...}` is an inline framed box:
the content is measured as a single unbreakable unit, wrapped in 3pt padding and
a 0.4pt frame, and painted in both the PDF and the SVG preview.