-
released this
2026-10-06 10:02:58 +02:00 | 51 commits to main since this releaseAdded
- Bold and italic per span:
StyledTextspans take.boldand
.italic(st.append("word", .{ .bold = true })), resolved through the
base font's family likeTextStyle.bold/.italic; widths use each
span's variant, so wrapping and justification stay exact. A variant the
family lacks iserror.FontVariantNotLoaded, before anything is drawn.
Fixed
writeBlock, andwriteStyledwith plain spans, ignored the base
style'scoloranddecoration(text came out black, without
underline).TextStyleOptionsfields are now optional overrides:null
inherits from the base style. Existing calls such as
.{ .color = platen.Color.blue }compile unchanged.
Internal
- The PDF comparator behind the reference tests compares fonts whenever
either page has any (a page that lost all its fonts used to pass) and
treats qpdf failures as errors; it has its own tests in the suite. zig build testre-runs when a reference PDF, fixture or comparator
script changes (they are declared inputs); before, a regenerated or even
corrupted reference could be served a cached pass.
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
- Bold and italic per span: