You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Text gradient in a zero-height block is invisible in PDF #9049
bugSomething isn't workingpdfRelated to PDF export or PDF embedding.visualizeRelated to the visualize category, which is about drawing and illustrating
The PDF contains /Matrix [59.488 0 0 0 70.86614 771.0236].
Ghostscript 10.08.0: the page is blank.
poppler 26.11.0 (pdftocairo): prints Syntax Warning: matrix not invertible and the page is blank.
PNG export: the text is solid red.
A one-line heading under #set text(top-edge: "baseline") also has zero height and gives a singular matrix.
convert_paint in crates/typst-pdf/src/paint.rs replaces a zero size with 1 pt (L97–102), but convert_gradient then uses state.container_size() for RelativeTo::Parent (L209), which still has the zero height. The code is the same on main.
Expected: the gradient shows from red to blue, as in a block with a height.
bugSomething isn't workingpdfRelated to PDF export or PDF embedding.visualizeRelated to the visualize category, which is about drawing and illustrating
Activity