常用字体映射字典

表格形式

英文字体名称 中文字体名称
SimSun 宋体
SimHei 黑体
KaiTi 楷体
FangSong 仿宋
YouYuan 幼圆
LiSu 隶书
NSimSun 新宋体
SimSun-ExtB 宋体-ExtB
FangSong_GB2312 仿宋_GB2312
KaiTi_GB2312 楷体_GB2312
Microsoft YaHei 微软雅黑
Microsoft JhengHei 微软正黑体
STXihei 华文细黑
STKaiti 华文楷体
STSong 华文宋体
STFangsong 华文仿宋
STZhongsong 华文中宋
STCaiyun 华文彩云
STHupo 华文琥珀
STLiti 华文隶书
STXingkai 华文行楷
STXinwei 华文新魏
PingFang SC 苹方
PingFang TC 苹方 繁体
Hiragino Sans GB 冬青黑体简体中文
Hiragino Sans 冬青黑体
Hiragino Kaku Gothic Pro 冬青角黑体
Hiragino Mincho Pro 冬青明朝体
Yu Gothic 游ゴシック
Yu Mincho 游明朝体
Meiryo メイリオ
MS Gothic MS ゴシック
MS Mincho MS 明朝
MS PGothic MS Pゴシック
MS PMincho MS P明朝
Noto Sans SC 思源黑体 简体
Noto Serif SC 思源宋体 简体
Noto Sans TC 思源黑体 繁体
Noto Serif TC 思源宋体 繁体
Noto Sans JP 思源黑体 日文
Noto Serif JP 思源宋体 日文
Noto Sans KR 思源黑体 韩文
Noto Serif KR 思源宋体 韩文
Noto Sans HK 思源黑体 香港
Noto Serif HK 思源宋体 香港
FZY3JW--GB1-0 方正硬笔行书
AdobeHeitiStd-Regular Adobe 黑体 Std Regular
LILINgete 立林哥特体
FZZZHUNHJW--GB1-0 方正准黑简体
CTBiaoSongSJ 微软简标宋
... ...

比较全的在下面的pyhton数组中

| 英文字体名称 | 中文字体名称 |

|----------------------------|------------------|

| SimSun | 宋体 |

| SimHei | 黑体 |

| KaiTi | 楷体 |

| FangSong | 仿宋 |

| YouYuan | 幼圆 |

| LiSu | 隶书 |

| NSimSun | 新宋体 |

| SimSun-ExtB | 宋体-ExtB |

| FangSong_GB2312 | 仿宋_GB2312 |

| KaiTi_GB2312 | 楷体_GB2312 |

| Microsoft YaHei | 微软雅黑 |

| Microsoft JhengHei | 微软正黑体 |

| STXihei | 华文细黑 |

| STKaiti | 华文楷体 |

| STSong | 华文宋体 |

| STFangsong | 华文仿宋 |

| STZhongsong | 华文中宋 |

| STCaiyun | 华文彩云 |

| STHupo | 华文琥珀 |

| STLiti | 华文隶书 |

| STXingkai | 华文行楷 |

| STXinwei | 华文新魏 |

| PingFang SC | 苹方 |

| PingFang TC | 苹方 繁体 |

| Hiragino Sans GB | 冬青黑体简体中文 |

| Hiragino Sans | 冬青黑体 |

| Hiragino Kaku Gothic Pro | 冬青角黑体 |

| Hiragino Mincho Pro | 冬青明朝体 |

| Yu Gothic | 游ゴシック |

| Yu Mincho | 游明朝体 |

| Meiryo | メイリオ |

| MS Gothic | MS ゴシック |

| MS Mincho | MS 明朝 |

| MS PGothic | MS Pゴシック |

| MS PMincho | MS P明朝 |

| Noto Sans SC | 思源黑体 简体 |

| Noto Serif SC | 思源宋体 简体 |

| Noto Sans TC | 思源黑体 繁体 |

| Noto Serif TC | 思源宋体 繁体 |

| Noto Sans JP | 思源黑体 日文 |

| Noto Serif JP | 思源宋体 日文 |

| Noto Sans KR | 思源黑体 韩文 |

| Noto Serif KR | 思源宋体 韩文 |

| Noto Sans HK | 思源黑体 香港 |

| Noto Serif HK | 思源宋体 香港 |

| FZY3JW--GB1-0 | 方正硬笔行书 |

| AdobeHeitiStd-Regular | Adobe 黑体 Std Regular |

| LILINgete | 立林哥特体 |

| FZZZHUNHJW--GB1-0 | 方正准黑简体 |

| CTBiaoSongSJ | 微软简标宋 |

| Helvetica | Helvetica |

| Cooper Black | Cooper Black |

| American Typewriter | American Typewriter |

| Bauhaus 93 | Bauhaus 93 |

| Brush Script | Brush Script |

| Edwardian Script ITC | Edwardian Script ITC |

| Phosphate | Phosphate |

| Braggadocio | Braggadocio |

| Neue Haas Grotesk | Neue Haas Grotesk |

| Proxima Nova | Proxima Nova |

| Roboto | Roboto |

| Viktor Script | Viktor Script |

| Questa Grande | Questa Grande |

| Ofelia Text | Ofelia Text |

| Sylfaen | Sylfaen |

| Courier New | Courier New |

| qtquickcontrols | qtquickcontrols |

| Microsoft Yi Baiti | Microsoft Yi Baiti|

| FZYaoTi | FZYaoTi |

| Myanmar Text | Myanmar Text |

| Leelawadee UI | Leelawadee UI |

| Sitka Small | Sitka Small |

| Segoe UI | Segoe UI |

| Nirmala UI | Nirmala UI |

| Candara | Candara |

| Corbel | Corbel |

| Microsoft PhagsPa | Microsoft PhagsPa |

| elusiveicons | elusiveicons |

| Constantia | Constantia |

| Malgun Gothic | Malgun Gothic |

| Microsoft NeoGothic | Microsoft NeoGothic|

| Cambria | Cambria |

| Century | Century |

| Bahnschrift | Bahnschrift |

| Segoe UI Symbol | Segoe UI Symbol |

| Verdana | Verdana |

| Phosphor | Phosphor |

| Palatino Linotype | Palatino Linotype |

| Lucida Console | Lucida Console |

| Material Design Icons 5.9.55| Material Design Icons 5.9.55 |

| Trebuchet MS | Trebuchet MS |

| Leelawadee | Leelawadee |

| Microsoft Sans Serif | Microsoft Sans Serif |

| Material Design Icons | Material Design Icons |

| Gadugi | Gadugi |

| Gabriola | Gabriola |

| Microsoft New Tai Lue | Microsoft New Tai Lue |

| HoloLens MDL2 Assets | HoloLens MDL2 Assets |

| Microsoft Uighur | Microsoft Uighur |

| FZShuTi | FZShuTi |

| Times New Roman | Times New Roman |

| SketchFlow Print | SketchFlow Print |

| Consolas | Consolas |

| Comic Sans MS | Comic Sans MS |

| Segoe WP | Segoe WP |

| Arial | Arial |

| Franklin Gothic Medium | Franklin Gothic Medium |

| Symbol | Symbol |

| Source Han Serif SC | Source Han Serif SC |

| remixicon | remixicon |

| Microsoft Tai Le | Microsoft Tai Le |

| DengXian | DengXian |

| Segoe MDL2 Assets | Segoe MDL2 Assets |

| Microsoft MHei | Microsoft MHei |

| Calibri | Calibri |

| Wingdings 3 | Wingdings 3 |

| Buxton Sketch | Buxton Sketch |

| Lucida Sans Unicode | Lucida Sans Unicode |

| Font Awesome 5 Brands | Font Awesome 5 Brands |

| Segoe Script | Segoe Script |

| Ebrima | Ebrima |

| Georgia | Georgia |

| DejaVu Math TeX Gyre | DejaVu Math TeX Gyre |

| Tahoma | Tahoma |

| Segoe UI Emoji | Segoe UI Emoji |

| Ink Free | Ink Free |

| Segoe Marker | Segoe Marker |

| MingLiU-ExtB | MingLiU-ExtB |

| codicon | codicon |

| Mongolian Baiti | Mongolian Baiti |

| Wingdings | Wingdings |

| Impact | Impact |

| Wingdings 2 | Wingdings 2 |

| Segoe Print | Segoe Print |

| MV Boli | MV Boli |

| Segoe UI Historic | Segoe UI Historic |

| Font Awesome 5 Free Solid | Font Awesome 5 Free Solid |

| Webdings | Webdings |

| FontAwesome | FontAwesome |

| Microsoft Himalaya | Microsoft Himalaya|

| Font Awesome 5 Free Regular| Font Awesome 5 Free Regular |

| Javanese Text | Javanese Text |

| CTWeiBeiSJ | 微软简魏碑 |

| FZXKJW--GB1-0 | 方正行楷简体 |

适合python 数组的字体印射字典

复制代码
# 字体映射字典,将英文字体名称映射到中文字体名称
font_name_mapping = {
    'SimSun': '宋体',
    'SimHei': '黑体',
    'KaiTi': '楷体',
    'FangSong': '仿宋',
    'YouYuan': '幼圆',
    'LiSu': '隶书',
    'NSimSun': '新宋体',
    'SimSun-ExtB': '宋体-ExtB',
    'FangSong_GB2312': '仿宋_GB2312',
    'KaiTi_GB2312': '楷体_GB2312',
    'Microsoft YaHei': '微软雅黑',
    'Microsoft JhengHei': '微软正黑体',
    'STXihei': '华文细黑',
    'STKaiti': '华文楷体',
    'STSong': '华文宋体',
    'STFangsong': '华文仿宋',
    'STZhongsong': '华文中宋',
    'STCaiyun': '华文彩云',
    'STHupo': '华文琥珀',
    'STLiti': '华文隶书',
    'STXingkai': '华文行楷',
    'STXinwei': '华文新魏',
    'PingFang SC': '苹方',
    'PingFang TC': '苹方 繁体',
    'Hiragino Sans GB': '冬青黑体简体中文',
    'Hiragino Sans': '冬青黑体',
    'Hiragino Kaku Gothic Pro': '冬青角黑体',
    'Hiragino Mincho Pro': '冬青明朝体',
    'Yu Gothic': '游ゴシック',
    'Yu Mincho': '游明朝体',
    'Meiryo': 'メイリオ',
    'MS Gothic': 'MS ゴシック',
    'MS Mincho': 'MS 明朝',
    'MS PGothic': 'MS Pゴシック',
    'MS PMincho': 'MS P明朝',
    'Noto Sans SC': '思源黑体 简体',
    'Noto Serif SC': '思源宋体 简体',
    'Noto Sans TC': '思源黑体 繁体',
    'Noto Serif TC': '思源宋体 繁体',
    'Noto Sans JP': '思源黑体 日文',
    'Noto Serif JP': '思源宋体 日文',
    'Noto Sans KR': '思源黑体 韩文',
    'Noto Serif KR': '思源宋体 韩文',
    'Noto Sans HK': '思源黑体 香港',
    'Noto Serif HK': '思源宋体 香港',
    'FZY3JW--GB1-0': '方正硬笔行书',
    'AdobeHeitiStd-Regular': 'Adobe 黑体 Std Regular',
    'LILINgete': '立林哥特体',
    'FZZZHUNHJW--GB1-0': '方正准黑简体',
    'CTBiaoSongSJ': '微软简标宋',
    'Helvetica': 'Helvetica',
    'Cooper Black': 'Cooper Black',
    'American Typewriter': 'American Typewriter',
    'Bauhaus 93': 'Bauhaus 93',
    'Brush Script': 'Brush Script',
    'Edwardian Script ITC': 'Edwardian Script ITC',
    'Phosphate': 'Phosphate',
    'Braggadocio': 'Braggadocio',
    'Neue Haas Grotesk': 'Neue Haas Grotesk',
    'Proxima Nova': 'Proxima Nova',
    'Roboto': 'Roboto',
    'Viktor Script': 'Viktor Script',
    'Questa Grande': 'Questa Grande',
    'Ofelia Text': 'Ofelia Text',
    'Sylfaen': 'Sylfaen',
    'Courier New': 'Courier New',
    'qtquickcontrols': 'qtquickcontrols',
    'Microsoft Yi Baiti': 'Microsoft Yi Baiti',
    'FZYaoTi': 'FZYaoTi',
    'Myanmar Text': 'Myanmar Text',
    'Leelawadee UI': 'Leelawadee UI',
    'Sitka Small': 'Sitka Small',
    'Segoe UI': 'Segoe UI',
    'Nirmala UI': 'Nirmala UI',
    'Candara': 'Candara',
    'Corbel': 'Corbel',
    'Microsoft PhagsPa': 'Microsoft PhagsPa',
    'elusiveicons': 'elusiveicons',
    'Constantia': 'Constantia',
    'Malgun Gothic': 'Malgun Gothic',
    'Microsoft NeoGothic': 'Microsoft NeoGothic',
    'Cambria': 'Cambria',
    'Century': 'Century',
    'Bahnschrift': 'Bahnschrift',
    'Segoe UI Symbol': 'Segoe UI Symbol',
    'Verdana': 'Verdana',
    'Phosphor': 'Phosphor',
    'Palatino Linotype': 'Palatino Linotype',
    'Lucida Console': 'Lucida Console',
    'Material Design Icons 5.9.55': 'Material Design Icons 5.9.55',
    'Trebuchet MS': 'Trebuchet MS',
    'Leelawadee': 'Leelawadee',
    'Microsoft Sans Serif': 'Microsoft Sans Serif',
    'Material Design Icons': 'Material Design Icons',
    'Gadugi': 'Gadugi',
    'Gabriola': 'Gabriola',
    'Microsoft New Tai Lue': 'Microsoft New Tai Lue',
    'HoloLens MDL2 Assets': 'HoloLens MDL2 Assets',
    'Microsoft Uighur': 'Microsoft Uighur',
    'FZShuTi': 'FZShuTi',
    'Times New Roman': 'Times New Roman',
    'SketchFlow Print': 'SketchFlow Print',
    'Consolas': 'Consolas',
    'Comic Sans MS': 'Comic Sans MS',
    'Segoe WP': 'Segoe WP',
    'Arial': 'Arial',
    'Franklin Gothic Medium': 'Franklin Gothic Medium',
    'Symbol': 'Symbol',
    'Source Han Serif SC': 'Source Han Serif SC',
    'remixicon': 'remixicon',
    'Microsoft Tai Le': 'Microsoft Tai Le',
    'DengXian': 'DengXian',
    'Segoe MDL2 Assets': 'Segoe MDL2 Assets',
    'Microsoft MHei': 'Microsoft MHei',
    'Calibri': 'Calibri',
    'Wingdings 3': 'Wingdings 3',
    'Buxton Sketch': 'Buxton Sketch',
    'Lucida Sans Unicode': 'Lucida Sans Unicode',
    'Font Awesome 5 Brands': 'Font Awesome 5 Brands',
    'Segoe Script': 'Segoe Script',
    'Ebrima': 'Ebrima',
    'Georgia': 'Georgia',
    'DejaVu Math TeX Gyre': 'DejaVu Math TeX Gyre',
    'Tahoma': 'Tahoma',
    'Segoe UI Emoji': 'Segoe UI Emoji',
    'Ink Free': 'Ink Free',
    'Segoe Marker': 'Segoe Marker',
    'MingLiU-ExtB': 'MingLiU-ExtB',
    'codicon': 'codicon',
    'Mongolian Baiti': 'Mongolian Baiti',
    'Wingdings': 'Wingdings',
    'Impact': 'Impact',
    'Wingdings 2': 'Wingdings 2',
    'Segoe Print': 'Segoe Print',
    'MV Boli': 'MV Boli',
    'Segoe UI Historic': 'Segoe UI Historic',
    'Font Awesome 5 Free Solid': 'Font Awesome 5 Free Solid',
    'Webdings': 'Webdings',
    'FontAwesome': 'FontAwesome',
    'Microsoft Himalaya': 'Microsoft Himalaya',
    'Font Awesome 5 Free Regular': 'Font Awesome 5 Free Regular',
    'Javanese Text': 'Javanese Text',
    'CTWeiBeiSJ': '微软简魏碑',
    'FZXKJW--GB1-0': '方正行楷简体',
}
相关推荐
东方小月6 小时前
从零开发一个 Coding Agent(四):使用状态机校验大模型事件流
前端·人工智能·后端
Csvn6 小时前
🧩 ESM vs CJS 混用的 7 个「天坑」——从 TypeScript 编译到 Node 与浏览器
前端
Csvn6 小时前
🎯 Web 性能 API 集合:Performance Observer 的 5 个冷门妙用
前端
Csvn6 小时前
深入 React 闭包陷阱:从根源上理解并根治 stale closure
前端
whyfail6 小时前
前端学 Spring Boot(8):接口为什么越用越慢?
前端·spring boot·后端
用户059540174467 小时前
LangChain 记忆测试踩坑实录:这两个坑让我排查了 4 小时
前端·css
程序员黑豆7 小时前
鸿蒙应用开发:@Monitor 装饰器使用教程
前端·harmonyos
SamChan908 小时前
在Web应用中集成PDF多语言翻译功能:PDFTranslator API实战指南
前端·python·ai·pdf·yapi·机器翻译
kyriewen8 小时前
AI Agent 9秒删光了生产数据库——我给自己的项目做了5个紧急检查
前端·ai编程·claude
IT_陈寒8 小时前
JavaScript的this又双叒叕让我怀疑人生了
前端·人工智能·后端