Embed WOFF2 fonts in SVG export and fix PPT/SVG exporter rendering issues.#10
Closed
OnionsYu wants to merge 10 commits into
Closed
Embed WOFF2 fonts in SVG export and fix PPT/SVG exporter rendering issues.#10OnionsYu wants to merge 10 commits into
OnionsYu wants to merge 10 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.
Owner
Author
|
Recreating against upstream Tencent/libpag. |
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 选项的单元测试。