fix: 内置DOCX双中文字体包

This commit is contained in:
SkyJourney
2026-08-03 12:07:12 +08:00
parent a094dabf02
commit 6a6972ae48
24 changed files with 508 additions and 180 deletions
+5 -5
View File
@@ -8,7 +8,7 @@
#write {
color: var(--official-ink);
font-family:
"FandolFang", "FangSong", "STFangsong", "Noto Serif CJK SC",
"FandolSong", "FangSong", "STFangsong", "Noto Serif CJK SC",
"Source Han Serif SC", "SimSun", serif;
font-size: 21.333px;
line-height: 1.75;
@@ -64,13 +64,13 @@
#write .doc-signatory > span {
font-family:
"FandolFang", "FangSong", "STFangsong",
"FandolSong", "FangSong", "STFangsong",
"Noto Serif CJK SC", serif;
}
#write .doc-signatory {
font-family:
"FandolKai", "KaiTi", "STKaiti",
"FandolSong", "KaiTi", "STKaiti",
"Noto Serif CJK SC", serif;
}
@@ -110,7 +110,7 @@
#write h5,
#write h6 {
font-family:
"FandolKai", "KaiTi", "STKaiti",
"FandolSong", "KaiTi", "STKaiti",
"Noto Serif CJK SC", serif;
font-weight: 400;
}
@@ -222,7 +222,7 @@
border-bottom: 0.35mm solid var(--official-rule);
break-inside: avoid;
font-family:
"FandolFang", "FangSong", "STFangsong",
"FandolSong", "FangSong", "STFangsong",
"Noto Serif CJK SC", serif;
font-size: 0.875em;
line-height: 1.7;
-12
View File
@@ -77,23 +77,11 @@
"weight": 700,
"license": "GPL-3.0-or-later WITH Font-exception-2.0"
},
{
"family": "FandolFang",
"aliases": ["Mdpdf Fandol Fang", "FangSong", "STFangsong"],
"source": "theme-shared:official-fonts/FandolFang-Regular.woff2",
"license": "GPL-3.0-or-later WITH Font-exception-2.0"
},
{
"family": "FandolHei",
"aliases": ["Mdpdf Fandol Hei", "SimHei", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei"],
"source": "theme-shared:official-fonts/FandolHei-Regular.woff2",
"license": "GPL-3.0-or-later WITH Font-exception-2.0"
},
{
"family": "FandolKai",
"aliases": ["Mdpdf Fandol Kai", "KaiTi", "STKaiti"],
"source": "theme-shared:official-fonts/FandolKai-Regular.woff2",
"license": "GPL-3.0-or-later WITH Font-exception-2.0"
}
]
},
+4 -4
View File
@@ -8,7 +8,7 @@
#write {
color: var(--briefing-ink);
font-family:
"Noto Serif CJK SC", "Source Han Serif SC",
"FandolSong", "Noto Serif CJK SC", "Source Han Serif SC",
"Microsoft YaHei", "SimSun", serif;
font-size: 18px;
line-height: 1.8;
@@ -27,7 +27,7 @@
border-bottom: 1mm solid var(--briefing-red);
color: var(--briefing-red);
font-family:
"STZhongsong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
"FandolSong", "STZhongsong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
font-size: 2.35em;
font-weight: 700;
letter-spacing: 0.18em;
@@ -55,7 +55,7 @@
#write .doc-title {
margin: 0 0 8mm;
font-family:
"STZhongsong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
"FandolSong", "STZhongsong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
font-size: 1.65em;
font-weight: 700;
line-height: 1.4;
@@ -68,7 +68,7 @@
#write h4 {
margin: 1.35em 0 0.5em;
font-family:
"Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
"MdTP Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
font-weight: 700;
line-height: 1.5;
}
+25
View File
@@ -32,5 +32,30 @@
"docxStyle": {
"preset": "official"
},
"docxFonts": {
"faces": [
{
"family": "FandolSong",
"aliases": ["Mdpdf Fandol Song", "STZhongsong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun"],
"source": "theme-shared:official-fonts/FandolSong-Regular.woff2",
"weight": 400,
"license": "GPL-3.0-or-later WITH Font-exception-2.0"
},
{
"family": "FandolSong",
"aliases": ["Mdpdf Fandol Song", "STZhongsong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun"],
"source": "theme-shared:official-fonts/FandolSong-Bold.woff2",
"weight": 700,
"license": "GPL-3.0-or-later WITH Font-exception-2.0"
},
{
"family": "MdTP Sans SC",
"aliases": ["FandolHei", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei"],
"source": "theme-shared:official-fonts/FandolHei-Regular.woff2",
"weight": 700,
"license": "OFL-1.1"
}
]
},
"bundled": true
}