Skip to content

Embed vector fonts as WOFF2 in PAGX SVG export and align group skew sign.#9

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

Embed vector fonts as WOFF2 in PAGX SVG export and align group skew sign.#9
OnionsYu wants to merge 3 commits into
mainfrom
feature/onionsyu_font_woff

Conversation

@OnionsYu

@OnionsYu OnionsYu commented Jun 5, 2026

Copy link
Copy Markdown
Owner

统一 PAGX 导出行为并补齐 SVG 字体嵌入:

  • 将 PAGX SVG 与 HTML 导出器的 group skew 符号方向与原生渲染器保持一致,避免导出结果与 PAG 实际呈现不符。
  • 在 SVG 导出中以 WOFF2 形式嵌入矢量字体,使 SVG 在脱离本地字体环境时也能正确显示文本。
  • 将原本仅供 HTML 使用的 WOFF2 字体生成器迁移到 pagx/utils,让 SVG 与 HTML 导出共享同一份实现,去除重复代码。

@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