libpag
libpag copied to clipboard
Add pagx embed command, restructure pagx font, and support external font files.
本 PR 整合 PAGX CLI 的三阶段重构:
- 新增 pagx embed 命令:统一字形与图片嵌入流程,支持 --skip-fonts / --skip-images / --fallback 选项;ImageEmbedder 与 FontEmbedder 拆分清晰。
- 重构 pagx font 命令:扁平化为单一查询命令,移除 embed 子命令(保留兼容重定向),新增 --list 列出系统字体。
- PAGX Font 节点新增 file 属性:可引用外部字体文件,pagx embed 自动扫描并注册字体到 FontConfig,无需 --font-file 参数;ClearEmbeddedGlyphRuns 在 Font 含 file 时保留节点结构仅清除 Glyph 子节点,支持幂等 re-embed。
附带 SystemFonts 在 macOS / Windows / Linux / FreeType 后端新增 AllFontFamilies 与 FindFont 实现,修复若干内存泄漏与悬空指针问题,并更新 spec、skills 文档及 CLI 测试。
Codecov Report
:x: Patch coverage is 78.18599% with 190 lines in your changes missing coverage. Please review.
:white_check_mark: Project coverage is 82.33%. Comparing base (77a8c79) to head (e165f32).
Additional details and impacted files
@@ Coverage Diff @@
## main #3471 +/- ##
==========================================
+ Coverage 82.27% 82.33% +0.05%
==========================================
Files 691 695 +4
Lines 87954 88675 +721
Branches 25281 25482 +201
==========================================
+ Hits 72368 73011 +643
- Misses 10301 10316 +15
- Partials 5285 5348 +63
:umbrella: View full report in Codecov by Harness.
:loudspeaker: Have feedback on the report? Share it here.
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
- :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.