AIToday
Large Language ModelsZenn AI/MLPublished: Nov 22, 2026, 16:00 JST

Claude Desktop pptx skill erases font overrides from pptxgenjs output

Send on LINE
Claude Desktop pptx skill erases font overrides from pptxgenjs output

3 Key Points

  1. What happened

    An FA engineer's Claude Desktop skill post-processes pptx output to remove per-character font direct specifications — which pptxgenjs writes as latin/ea/cs overrides via fontFace — while preserving theme references (values starting with +) and the Symbol font.

  2. Why it matters

    Without this step, changing the slide master or theme font leaves all text unchanged because direct font specifications take priority over the theme, effectively locking the deck's typography to whatever the generator wrote.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

Context & Analysis

The skill's rules grew out of a specific frustration: generated pptx files look fine when opened, so it is easy to assume they are correct. The font issue is a case in point — the file opens and displays, but a theme-level font change has no effect because every character carries its own font name. The fix is a post-processing pipeline that unzips the pptx, applies a Python regular expression to specific XML elements, and re-zips, deliberately excluding theme references (values beginning with +) and the Symbol font so that special characters like µ do not degrade into plain letters.

The table problem is a second, subtler trap. When XML tables are built or rows and columns are duplicated or deleted, cells can end up after the row's extLst (the row extension information that holds the row ID). PowerPoint then refuses to read the cell contents, leaving only borders visible. A verification environment using LibreOffice renders the same file correctly, and the skill's own validate.py passes, so the defect can escape notice until the file is opened in PowerPoint. The skill therefore treats a successful LibreOffice render as no evidence of PowerPoint compatibility, and requires a scripted count of ordering violations to be reported as zero before output.

The remaining rules address file safety and speaker notes. Existing files are never overwritten; output goes to a new version number, and the code asserts the target does not already exist (assert not os.path.exists(OUT)). Notes are matched to slides by title and body text rather than by slide number, because numbers shift as slides are added or removed during editing. Validation results are reported as command output and counts, extending the series' standing rule that verification not visible in the output is treated as not performed.

FAQ
Why do theme font changes not affect Claude-generated pptx files?
Because pptxgenjs writes fontFace as a direct latin/ea/cs typeface on every character.
What must the post-processing step be careful not to delete?
It must preserve theme references (typeface values starting with +, such as +mn-lt) and the Symbol font — for example, deleting typeface="Symbol" on a run turns a µ character into m.
How does the skill handle tables that appear empty only in PowerPoint?
In each table row, cells must come before the row's extLst. The skill inserts new cells before extLst rather than appending, and counts rows where cells come after extLst to confirm zero violations before output.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleASIO's Mike Burgess flags AI data centre foreign-interference risk