From 03ca59b42e0940f6cd6bf76e3b77edc7d27cdad4 Mon Sep 17 00:00:00 2001 From: tannevaled Date: Mon, 19 Oct 2026 22:06:02 +0200 Subject: [PATCH] Rasterise SVG with go-gfx/oksvg v0.1.0: clipPath, and arcs with several parameter sets The import and the requirement change from srwiley/oksvg (unmaintained since 2022, no clipPath) to its fleet fork go-gfx/oksvg, which adds clipPath and fixes arc commands with several parameter sets. No engine logic changes. Co-Authored-By: Claude Opus 5.5 --- FIDELITY.md | 6 ++++-- README.md | 3 ++- go.mod | 2 +- go.sum | 4 ++-- svg.go | 2 +- svg_clip_test.go | 30 ++++++++++++++++++++++++++++++ svg_test.go | 2 +- 7 files changed, 41 insertions(+), 8 deletions(-) create mode 100644 svg_clip_test.go diff --git a/FIDELITY.md b/FIDELITY.md index ba349f0..67a5640 100644 --- a/FIDELITY.md +++ b/FIDELITY.md @@ -4944,8 +4944,10 @@ dependency (BSD-3, "build from source"). **What oksvg does / doesn't do (documented, not faked):** it handles the drawing subset above plus `currentColor` (we feed the element's computed CSS `color` via `ReadReplacingCurrentColor`, so `fill="currentColor"` logos take their real -colour). It does **not** implement SVG `` effects, ``/`` -compositing, `` fills, embedded raster ``, ``/font shaping, +colour). (Since the engine moved to the fleet fork `github.com/go-gfx/oksvg`, +`` and the `clip-path` property are implemented, with `clip-rule`, +and arc commands with several parameter sets are drawn correctly.) It does +**not** implement SVG `` effects, `` compositing, `` fills, embedded raster ``, ``/font shaping, CSS `