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

fix(typography): recognize Traditional Chinese system fonts as PPT-safe (#244)

Jambo Hsu76d5c7562969
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 12aa217c..b9a31829 100644
--- a/skills/ppt-master/scripts/svg_to_pptx/drawingml/utils.py
+++ b/skills/ppt-master/scripts/svg_to_pptx/drawingml/utils.py
@@ -88,6 +88,8 @@ FONT_FALLBACK_WIN = {
'PingFang SC': 'Microsoft YaHei',
'PingFang TC': 'Microsoft JhengHei',
'PingFang HK': 'Microsoft JhengHei',
+ 'Heiti TC': 'Microsoft JhengHei',
+ 'Kaiti TC': 'DFKai-SB',
'Hiragino Sans': 'Microsoft YaHei',
'Hiragino Sans GB': 'Microsoft YaHei',
'Hiragino Mincho ProN': 'SimSun',
@@ -98,12 +100,12 @@ FONT_FALLBACK_WIN = {
'STXihei': 'Microsoft YaHei',
'STZhongsong': 'SimSun',
'Songti SC': 'SimSun',
- 'Songti TC': 'SimSun',
+ 'Songti TC': 'PMingLiU',
'Noto Sans SC': 'Microsoft YaHei',
'Noto Sans CJK SC': 'Microsoft YaHei',
'Noto Sans TC': 'Microsoft JhengHei',
'Noto Serif SC': 'SimSun',
- 'Noto Serif TC': 'SimSun',
+ 'Noto Serif TC': 'PMingLiU',
# Japanese: keep as-is if user specified (PowerPoint will fallback if uninstalled)
# 'Noto Sans JP': → keep as 'Noto Sans JP' (do not map)
# 'メイリオ': → keep as 'メイリオ' (Meiryo alias)
@@ -111,7 +113,7 @@ FONT_FALLBACK_WIN = {
'Source Han Sans SC': 'Microsoft YaHei',
'Source Han Sans TC': 'Microsoft JhengHei',
'Source Han Serif SC': 'SimSun',
- 'Source Han Serif TC': 'SimSun',
+ 'Source Han Serif TC': 'PMingLiU',
'Source Han Sans JP': 'Noto Sans JP',
'Source Han Serif JP': 'Noto Serif JP',
'WenQuanYi Micro Hei': 'Microsoft YaHei',
@@ -153,8 +155,11 @@ _SERIF_LATIN = {
# target-specific; keep these examples aligned with strategist.md §g.
PPT_SAFE_FONTS = frozenset({
'microsoft yahei', 'simhei', 'simsun', 'kaiti', 'fangsong',
- 'dengxian', 'microsoft jhenghei',
+ 'dengxian',
+ 'microsoft jhenghei', 'microsoft jhenghei ui', 'pmingliu', 'mingliu',
+ 'mingliu_hkscs', 'dfkai-sb',
'pingfang sc', 'heiti sc', 'songti sc', 'stsong',
+ 'pingfang tc', 'pingfang hk', 'heiti tc', 'songti tc', 'kaiti tc',
'yu gothic', 'yu gothic ui', 'yu mincho',
'meiryo', 'meiryo ui',
'ms gothic', 'ms mincho', 'ms pgothic', 'ms pmincho', 'ms ui gothic',