Skip to content

Embed WOFF2 fonts in SVG export and fix PPT/SVG exporter rendering issues.#10

Closed
OnionsYu wants to merge 10 commits into
mainfrom
feature/onionsyu_font_woff
Closed

Embed WOFF2 fonts in SVG export and fix PPT/SVG exporter rendering issues.#10
OnionsYu wants to merge 10 commits into
mainfrom
feature/onionsyu_font_woff

Conversation

@OnionsYu

@OnionsYu OnionsYu commented Jun 5, 2026

Copy link
Copy Markdown
Owner

新增 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 选项的单元测试。

@OnionsYu

OnionsYu commented Jun 5, 2026

Copy link
Copy Markdown
Owner Author

Recreating against upstream Tencent/libpag.

@OnionsYu OnionsYu closed this Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant