Skip to content

1.3.0

Choose a tag to compare

@iliaal iliaal released this 16 Jun 12:17
· 38 commits to master since this release
1.3.0
a6a9b17

Added

  • Chart::renderPdf(): string and Chart::renderToFile('out.pdf') — vector PDF output. Chart bodies emit PDF path operators through the same fastchart_target_t primitive layer as renderSvg(), so all 26 chart classes render with no rasterization; text flattens to glyph outlines via the shared glyph cache (TrueType quadratics degree-elevated to PDF cubics, arcs/ellipses approximated with cubic Béziers). Opt-in at build time: ./configure --with-pdfio links a system pdfio statically, so the runtime dependency set is unchanged. Without the flag both methods throw "PDF support not compiled in" and the PDF tests skip.

v1 limitations: gradient fills fall back to solid, raster background images are omitted (the caller falls back to solid fill), and alpha is ignored, so fills render opaque.