Files
genoffice/packages/pptx-engine
konghaojie-k2andClaude 932eccb1c7 fix(slides): strip stale embedded-font subsets after text edits (#283)
Decks saved by WPS/PowerPoint with font embedding carry subsetted,
MicroType-Express-compressed EOT fonts we cannot re-generate (licensed
compressor). After any text edit the subsets no longer cover the new
glyphs; WPS honors the stale subset strictly and renders the missing
glyphs as invisible ("white") text, while the in-app system-font
fallback shows everything fine.

On save, once any slide has content edits (structureDirty or a dirty
element — including new slides from insert/duplicate), strip the
embedding: drop p:embeddedFontLst + embedTrueTypeFonts/saveSubsetFonts
from presentation.xml, the font rels, the ppt/fonts/*.fntdata parts and
the fntdata content-type. Viewers then fall back to system fonts.
No-edit saves stay byte-identical and keep the embedding.

Known limit: master/layout text edits write archive parts directly and
don't trigger the strip.

Co-authored-by: Claude <noreply@anthropic.com>
2026-09-10 17:23:42 +08:00
..
2026-09-09 18:19:13 +08:00
2026-08-02 19:52:16 +08:00
2026-08-02 19:52:16 +08:00