Skip to content

AI turns documents or topics into real, native PowerPoint decks—with native shapes, transitions and animations, data-backed charts and tables on demand, audio narration from speaker notes, and support for your own .pptx templates. · by Hugo He

feat(fonts): widen font variety and recognition

hugohe3a596a1954e15
diff --git a/skills/ppt-master/references/strategist.md b/skills/ppt-master/references/strategist.md
index 3b306a22..2929939f 100644
--- a/skills/ppt-master/references/strategist.md
+++ b/skills/ppt-master/references/strategist.md
@@ -163,7 +163,7 @@ See [`../templates/icons/README.md`](../templates/icons/README.md) for the curre
- `"Times New Roman"` ↔ `Times`
- `Georgia` ↔ `Cambria`
-**Mandatory**: propose **two** combinations to the user — one concord (safe), one contrast (with tension). Do not default to "title = body, same font" without explicit user request.
+**Mandatory**: propose **two** combinations to the user — one concord (safe), one contrast (with tension). Do not default to "title = body, same font" without explicit user request. Pick each family by subject fit; `Microsoft YaHei` / `KaiTi` are safe choices, not the default look.
> **Template precedence**: when a template was loaded at Step 3 via an explicit path and declares `title` / `body` font stacks in `<project_path>/templates/design_spec.md §III Typography` / §IV (or whichever heading the fused spec uses), lock those directly and skip the two-combination presentation. Same precedence as e. — user override > template values.
@@ -178,7 +178,7 @@ See [`../templates/icons/README.md`](../templates/icons/README.md) for the curre
| Mono | Consolas, Courier New |
| Display | Impact, Arial Black |
-**Seed combinations** (all PPT-safe; first column names the contrast axis, not a scenario):
+**Seed combinations** (all PPT-safe; first column is the contrast axis, not a scenario) — starting points, not the allowed set. Any client-preinstalled family is fair game; non-pre-installed expressive faces go title-only (see note below).
| Contrast axis | Title stack | Body stack | Code stack |
|---|---|---|---|
@@ -191,7 +191,7 @@ See [`../templates/icons/README.md`](../templates/icons/README.md) for the curre
| Cool serif (academic) | `Cambria, SimSun, serif` | `"Times New Roman", SimSun, serif` | — |
| Hei × song (政务) | `SimHei, "Microsoft YaHei", sans-serif` | `SimSun, serif` | — |
| Tech / developer | `Arial, "Microsoft YaHei", sans-serif` | same | `Consolas, "Courier New", monospace` |
-| Concord (default fallback) | `"Microsoft YaHei", "PingFang SC", sans-serif` | same | — |
+| Concord (single family — pick the family by subject) | `"Microsoft YaHei", "PingFang SC", sans-serif` | same | — |
> **Stack length discipline (soft rule).** ≤4 fonts per stack. Lead with Windows-preinstalled fonts (Microsoft YaHei / SimSun / Arial / Georgia / Consolas); keep at most **one** macOS-exclusive family (typically `"PingFang SC"`). Converter only picks the first Latin and first CJK font ([`drawingml_utils.py parse_font_family`](../scripts/svg_to_pptx/drawingml_utils.py)); macOS→Windows fallback is auto-mapped via `FONT_FALLBACK_WIN`.
@@ -199,6 +199,7 @@ See [`../templates/icons/README.md`](../templates/icons/README.md) for the curre
> - **Retro / pixel** — Press Start 2P / VT323 / Silkscreen
> - **Rounded friendly** — Nunito / Quicksand / M PLUS Rounded / OPPO Sans (closest safe substitute: `Trebuchet MS` / `Verdana`)
> - **Modern web sans** — Inter / HarmonyOS Sans / Source Han Sans / Noto Sans
+> - **Calligraphic display** — 隶书 LiSu / 华文行楷 STXingkai / 华文新魏 STXinwei (closest safe substitute: `KaiTi` / `FangSong`); cover / section / hero titles only, never body
> - **Brand-specific** — McKinsey Bower, corporate VI typefaces
#### Font Size Ramp (all sizes in px)
diff --git a/skills/ppt-master/scripts/svg_quality_checker.py b/skills/ppt-master/scripts/svg_quality_checker.py
index 33bbc382..94e0401c 100644
--- a/skills/ppt-master/scripts/svg_quality_checker.py
+++ b/skills/ppt-master/scripts/svg_quality_checker.py
@@ -473,6 +473,7 @@ class SVGQualityChecker:
# this set survives the PPTX round-trip on any viewer machine.
ppt_safe_tail = {
'microsoft yahei', 'simhei', 'simsun', 'kaiti', 'fangsong',
+ 'dengxian', 'microsoft jhenghei',
'pingfang sc', 'heiti sc', 'songti sc', 'stsong',
'arial', 'arial black', 'calibri', 'segoe ui', 'verdana',
'helvetica', 'helvetica neue', 'tahoma', 'trebuchet ms',
diff --git a/skills/ppt-master/scripts/svg_to_pptx/drawingml_utils.py b/skills/ppt-master/scripts/svg_to_pptx/drawingml_utils.py
index c4617a1f..356733cb 100644
--- a/skills/ppt-master/scripts/svg_to_pptx/drawingml_utils.py
+++ b/skills/ppt-master/scripts/svg_to_pptx/drawingml_utils.py
@@ -44,6 +44,14 @@ EA_FONTS = {
'WenQuanYi Micro Hei', 'WenQuanYi Zen Hei',
'YouYuan', 'LiSu', 'HuaWenKaiTi',
'Songti SC', 'Songti TC',
+ # Windows 10/11 + Office default / common Simplified Chinese
+ 'DengXian', 'DengXian Light', 'DengXian Bold', 'Microsoft YaHei UI',
+ # Office display Chinese (华文 / 方正) — usually title-only, not on every client
+ 'STXingkai', 'STLiti', 'STXinwei', 'STHupo', 'STCaiyun',
+ 'FZShuTi', 'FZYaoti',
+ # Common Traditional Chinese (Office)
+ 'DFKai-SB', 'MingLiU', 'PMingLiU', 'MingLiU-ExtB', 'PMingLiU-ExtB',
+ 'Microsoft JhengHei UI',
# Japanese fonts (Windows-available)
'Yu Gothic', 'Yu Gothic UI', 'Yu Mincho',
'Meiryo', 'Meiryo UI', 'メイリオ',