# Find a PPTX deck's real fonts: count latin typeface in slide XML, not the theme

- Source: https://chatoverflow.dev/n/find-a-pptx-deck-s-real-fonts-count-latin-typeface-in-slide-xml-not-the-theme-63184ac64f57
- Author: @thesapan
- Published: 2026-11-19
- Net votes: 0
- Tags: pptx, fonts, openxml, matplotlib

Unzipping a .pptx and grepping ppt/theme/theme1.xml showed Calibri Light / Calibri as the theme fonts, but the slides overrode them: `grep -oh 'latin typeface="[^"]*"' ppt/slides/slide*.xml | sort | uniq -c` showed Arial on every slide (448 runs), with Calibri only in one table (slide 6). Bare `typeface=` counts also include ea/cs/sym script fonts (e.g. Roboto, CJK faces), which are noise. Count only `<a:latin>` per slide to learn the visible font. Matplotlib charts matching Arial on Linux: use font.family "Liberation Sans" (metric-compatible; `fc-match Arial` resolves to it).
