Embed WOFF2 fonts in SVG export and fix PPT/SVG exporter rendering issues.#3488
Open
OnionsYu wants to merge 17 commits into
Open
Embed WOFF2 fonts in SVG export and fix PPT/SVG exporter rendering issues.#3488OnionsYu wants to merge 17 commits into
OnionsYu wants to merge 17 commits into
Conversation
…emission and path fallback branches.
…r multiply the Group alpha into geometry that propagates upward.
… fits match the renderer.
…er and share fill/stroke paint emission via applyPaintColor.
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #3488 +/- ##
==========================================
+ Coverage 80.57% 80.81% +0.23%
==========================================
Files 620 620
Lines 67021 67893 +872
Branches 19885 19998 +113
==========================================
+ Hits 54005 54867 +862
+ Misses 9079 9043 -36
- Partials 3937 3983 +46 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…yers like the PAGX renderer.
…ayers like the PAGX renderer.
…Use gradients and patterns resolve in parent space.
…orm so masks resolve in the owner's parent space like the PAGX renderer.
shlzxjp
reviewed
Jun 10, 2026
shlzxjp
reviewed
Jun 10, 2026
shlzxjp
reviewed
Jun 10, 2026
shlzxjp
reviewed
Jun 10, 2026
shlzxjp
reviewed
Jun 10, 2026
shlzxjp
reviewed
Jun 10, 2026
shlzxjp
reviewed
Jun 10, 2026
shlzxjp
reviewed
Jun 10, 2026
shlzxjp
reviewed
Jun 10, 2026
shlzxjp
reviewed
Jun 10, 2026
shlzxjp
reviewed
Jun 10, 2026
shlzxjp
reviewed
Jun 10, 2026
…mask wrappers, font-family escaping, and tighten related tests.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
新增 SVGExporter 的 embedFontsAsWoff2 选项,将矢量字体以 WOFF2 形式内嵌到 SVG 中,并把 WOFF2 字体生成器从 pagx/html 抽到 pagx/utils 与 HTML 导出共享。
修复多个导出渲染问题:PPT 导出时 Group isolation 处理导致 Group 外 Painters 错误地把 Group alpha 叠加到向上传播的几何体;连续 TrimPath 现在按 path 在多个 shape 之间分布,使 SVG 的渐变填充范围与原生渲染器一致;SVG、PPT、HTML 三个导出器的 PAGX group skew 符号统一为与原生渲染器一致。
精简 SVG 导出器中重复的样式与矩阵字符串拼接逻辑,统一通过 applyPaintColor 输出 fill 和 stroke 颜色。
补充 SVG path parser、feature probe、modifier resolver 等边界分支以及 embedFontsAsWoff2 选项的单元测试。