fix: 统一十四套主题DOCX字体映射

This commit is contained in:
SkyJourney
2026-08-03 12:47:14 +08:00
parent 6a6972ae48
commit 9dee7e8605
23 changed files with 325 additions and 63 deletions
+7 -5
View File
@@ -1507,11 +1507,13 @@ ECharts 第二阶段浏览器与 PDF 验证结果:
新增 `mdtp-sans-sc@1.0.0` 静态 TrueType/WOFF2,与现有 新增 `mdtp-sans-sc@1.0.0` 静态 TrueType/WOFF2,与现有
`mdtp-serif-sc@1.0.0` 组成受 `font-packs/bundle.json` 约束的确定性 `mdtp-serif-sc@1.0.0` 组成受 `font-packs/bundle.json` 约束的确定性
双字体包集合;Desktop 安装版和便携版改为直接内置,Docker 同步执行 双字体包集合;Desktop 安装版和便携版改为直接内置,Docker 同步执行
双清单哈希验证,不再依赖可选伴随安装器。`red-briefing` 双清单哈希验证,不再依赖可选伴随安装器。14 套主题现已全部声明 DOCX
`gov-red-standard` 已收敛为每主题三个中文字体面,真实 Chromium、Word、 字体,中文字体面限制为每主题最多三个;正式、公文和经典标书使用 MdTP
WPS 输出均实际采用 MdTP 宋体/黑体,DOCX 各包含三个字体部件且字体门禁 宋体/黑体,现代、商务和技术主题使用 MdTP 黑体,GitHub/Pixyll 保留
失败为 0。下一步将同一映射规则扩展到其余 12 套主题,再修复封面和正文 小型拉丁字体并补充静态中文字体。14 套 Server HTTP 生产链全部成功,
语义块视觉差异; 每套纵版主题默认边距场景均经真实 Chromium、Word、WPS 验证,字体声明
数与嵌入部件数一致,Office 实际使用门禁失败为 0。全仓库测试、类型
检查、生产构建和差异检查通过;下一步修复封面和正文语义块视觉差异;
- 阶段 E:完成源码服务、Docker Web API、Desktop 安装版发布后复验; - 阶段 E:完成源码服务、Docker Web API、Desktop 安装版发布后复验;
- 阶段 F:完成 `v0.6.1` 版本、发行说明、发布产物、发布提交和标签。 - 阶段 F:完成 `v0.6.1` 版本、发行说明、发布产物、发布提交和标签。
@@ -67,6 +67,19 @@ test("字体门禁区分缺少声明、缺少嵌入和 Office 未实际采用",
assert.deepEqual(embedded, []); assert.deepEqual(embedded, []);
}); });
test("14 套内置主题都声明字体且中文字体面不超过三个", () => {
const { themes } = matrix();
const cjkFamilies = /(?:Fandol|MdTP|Song|Hei|Kai|Fang|Sim|YaHei|CJK|Han)/iu;
for (const theme of themes) {
assert.ok(theme.docxFontFaces.length > 0, `${theme.id} 缺少 DOCX 字体声明`);
assert.ok(theme.docxFontFaces.length <= 16, `${theme.id} 字体面超过协议上限`);
const cjkFaces = theme.docxFontFaces.filter((face) =>
[face.family, ...face.aliases].some((family) => cjkFamilies.test(family))
);
assert.ok(cjkFaces.length <= 3, `${theme.id} 中文字体面超过三个`);
}
});
test("每套主题都覆盖两个方向和五组边距", () => { test("每套主题都覆盖两个方向和五组边距", () => {
const { themes, cases } = matrix(); const { themes, cases } = matrix();
for (const theme of themes) { for (const theme of themes) {
+3 -3
View File
@@ -8,7 +8,7 @@
#write { #write {
color: var(--enterprise-ink); color: var(--enterprise-ink);
font-family: font-family:
"Noto Serif CJK SC", "Source Han Serif SC", "FandolSong", "Noto Serif CJK SC", "Source Han Serif SC",
"Microsoft YaHei", "SimSun", serif; "Microsoft YaHei", "SimSun", serif;
font-size: 18px; font-size: 18px;
line-height: 1.8; line-height: 1.8;
@@ -33,7 +33,7 @@
margin: 6mm 0; margin: 6mm 0;
color: var(--enterprise-red); color: var(--enterprise-red);
font-family: 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: 2em; font-size: 2em;
font-weight: 700; font-weight: 700;
letter-spacing: 0.1em; letter-spacing: 0.1em;
@@ -65,7 +65,7 @@
margin: 1.4em 0 0.55em; margin: 1.4em 0 0.55em;
color: var(--enterprise-red); color: var(--enterprise-red);
font-family: font-family:
"Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif; "FandolHei", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
font-weight: 700; font-weight: 700;
line-height: 1.45; line-height: 1.45;
} }
+25
View File
@@ -32,5 +32,30 @@
"docxStyle": { "docxStyle": {
"preset": "official" "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": "FandolHei",
"aliases": ["Noto Sans CJK SC", "Source Han Sans SC", "SimHei", "Microsoft YaHei"],
"source": "theme-shared:official-fonts/FandolHei-Regular.woff2",
"weight": 400,
"license": "GPL-3.0-or-later WITH Font-exception-2.0"
}
]
},
"bundled": true "bundled": true
} }
+7 -7
View File
@@ -8,7 +8,7 @@
#write { #write {
color: var(--regulation-ink); color: var(--regulation-ink);
font-family: font-family:
"FangSong", "STFangsong", "Noto Serif CJK SC", "FandolSong", "FangSong", "STFangsong", "Noto Serif CJK SC",
"Source Han Serif SC", "SimSun", serif; "Source Han Serif SC", "SimSun", serif;
font-size: 18px; font-size: 18px;
line-height: 1.8; line-height: 1.8;
@@ -18,7 +18,7 @@
#write > h1:first-child { #write > h1:first-child {
margin: 8mm 0 12mm; margin: 8mm 0 12mm;
font-family: 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.8em; font-size: 1.8em;
line-height: 1.4; line-height: 1.4;
text-align: center; text-align: center;
@@ -39,12 +39,12 @@
#write h1 { #write h1 {
font-family: font-family:
"STZhongsong", "Noto Serif CJK SC", serif; "FandolSong", "STZhongsong", "Noto Serif CJK SC", serif;
} }
#write h2 { #write h2 {
font-family: font-family:
"SimHei", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; "FandolHei", "SimHei", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
} }
#write h3, #write h3,
@@ -52,7 +52,7 @@
#write h5, #write h5,
#write h6 { #write h6 {
font-family: font-family:
"KaiTi", "STKaiti", "Noto Serif CJK SC", serif; "FandolSong", "KaiTi", "STKaiti", "Noto Serif CJK SC", serif;
} }
#write p { #write p {
@@ -86,7 +86,7 @@
margin: 0.8em 0; margin: 0.8em 0;
border-collapse: collapse; border-collapse: collapse;
font-family: font-family:
"SimSun", "Noto Serif CJK SC", serif; "FandolSong", "SimSun", "Noto Serif CJK SC", serif;
font-size: 0.84em; font-size: 0.84em;
line-height: 1.5; line-height: 1.5;
} }
@@ -100,7 +100,7 @@
#write th { #write th {
background: #e9e9e9; background: #e9e9e9;
font-family: font-family:
"SimHei", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; "FandolHei", "SimHei", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
font-weight: 700; font-weight: 700;
text-align: center; text-align: center;
} }
+25
View File
@@ -24,5 +24,30 @@
"docxStyle": { "docxStyle": {
"preset": "formal" "preset": "formal"
}, },
"docxFonts": {
"faces": [
{
"family": "FandolSong",
"aliases": ["STZhongsong", "FangSong", "STFangsong", "KaiTi", "STKaiti", "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": ["STZhongsong", "FangSong", "STFangsong", "KaiTi", "STKaiti", "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": "FandolHei",
"aliases": ["Noto Sans CJK SC", "Source Han Sans SC", "SimHei", "Microsoft YaHei"],
"source": "theme-shared:official-fonts/FandolHei-Regular.woff2",
"weight": 400,
"license": "GPL-3.0-or-later WITH Font-exception-2.0"
}
]
},
"bundled": true "bundled": true
} }
+1 -1
View File
@@ -10,7 +10,7 @@
#write { #write {
color: var(--report-ink); color: var(--report-ink);
font-family: font-family:
"FandolFang", "Noto Serif CJK SC", "Source Han Serif SC", "FandolSong", "Noto Serif CJK SC", "Source Han Serif SC",
"Microsoft YaHei", "SimSun", serif; "Microsoft YaHei", "SimSun", serif;
font-size: 18px; font-size: 18px;
line-height: 1.8; line-height: 1.8;
+3 -3
View File
@@ -24,9 +24,9 @@
"docxFonts": { "docxFonts": {
"faces": [ "faces": [
{ {
"family": "FandolFang", "family": "FandolSong",
"aliases": ["FangSong", "STFangsong", "Noto Serif CJK SC", "Source Han Serif SC", "Microsoft YaHei", "SimSun"], "aliases": ["FangSong", "STFangsong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun"],
"source": "theme-shared:official-fonts/FandolFang-Regular.woff2", "source": "theme-shared:official-fonts/FandolSong-Regular.woff2",
"license": "GPL-3.0-or-later WITH Font-exception-2.0" "license": "GPL-3.0-or-later WITH Font-exception-2.0"
}, },
{ {
+8 -32
View File
@@ -14,30 +14,6 @@
src: url("theme-shared:official-fonts/FandolSong-Bold.woff2") format("woff2"); src: url("theme-shared:official-fonts/FandolSong-Bold.woff2") format("woff2");
} }
@font-face {
font-family: "Mdpdf Fandol Fang";
font-style: normal;
font-weight: 400;
font-display: block;
src: url("theme-shared:official-fonts/FandolFang-Regular.woff2") format("woff2");
}
@font-face {
font-family: "Mdpdf Fandol Hei";
font-style: normal;
font-weight: 400;
font-display: block;
src: url("theme-shared:official-fonts/FandolHei-Regular.woff2") format("woff2");
}
@font-face {
font-family: "Mdpdf Fandol Kai";
font-style: normal;
font-weight: 400;
font-display: block;
src: url("theme-shared:official-fonts/FandolKai-Regular.woff2") format("woff2");
}
:root { :root {
--letter-red: #d40000; --letter-red: #d40000;
--letter-ink: #111; --letter-ink: #111;
@@ -46,7 +22,7 @@
#write { #write {
color: var(--letter-ink); color: var(--letter-ink);
font-family: font-family:
"Mdpdf Fandol Fang", "FangSong", "STFangsong", "Noto Serif CJK SC", "Mdpdf Fandol Song", "FangSong", "STFangsong", "Noto Serif CJK SC",
"Source Han Serif SC", "SimSun", serif; "Source Han Serif SC", "SimSun", serif;
font-size: 21.333px; font-size: 21.333px;
line-height: 1.75; line-height: 1.75;
@@ -83,7 +59,7 @@
min-height: 1.75em; min-height: 1.75em;
justify-content: space-between; justify-content: space-between;
font-family: font-family:
"Mdpdf Fandol Hei", "SimHei", "Noto Sans CJK SC", "FandolHei", "SimHei", "Noto Sans CJK SC",
"Microsoft YaHei", sans-serif; "Microsoft YaHei", sans-serif;
font-size: 0.75em; font-size: 0.75em;
font-weight: 400; font-weight: 400;
@@ -130,7 +106,7 @@
#write h6 { #write h6 {
margin: 1em 0 0.35em; margin: 1em 0 0.35em;
font-family: font-family:
"Mdpdf Fandol Hei", "SimHei", "Noto Sans CJK SC", "FandolHei", "SimHei", "Noto Sans CJK SC",
"Microsoft YaHei", sans-serif; "Microsoft YaHei", sans-serif;
font-size: 1em; font-size: 1em;
font-weight: 400; font-weight: 400;
@@ -144,20 +120,20 @@
#write h5, #write h5,
#write h6 { #write h6 {
font-family: font-family:
"Mdpdf Fandol Kai", "KaiTi", "STKaiti", "Mdpdf Fandol Song", "KaiTi", "STKaiti",
"Noto Serif CJK SC", serif; "Noto Serif CJK SC", serif;
font-weight: 400; font-weight: 400;
} }
#write .doc-signatory { #write .doc-signatory {
font-family: font-family:
"Mdpdf Fandol Kai", "KaiTi", "STKaiti", "Mdpdf Fandol Song", "KaiTi", "STKaiti",
"Noto Serif CJK SC", serif; "Noto Serif CJK SC", serif;
} }
#write .doc-signatory > span { #write .doc-signatory > span {
font-family: font-family:
"Mdpdf Fandol Fang", "FangSong", "STFangsong", "Mdpdf Fandol Song", "FangSong", "STFangsong",
"Noto Serif CJK SC", serif; "Noto Serif CJK SC", serif;
} }
@@ -220,7 +196,7 @@
#write th { #write th {
background: #f5f5f5; background: #f5f5f5;
font-family: font-family:
"Mdpdf Fandol Hei", "SimHei", "Noto Sans CJK SC", "FandolHei", "SimHei", "Noto Sans CJK SC",
"Microsoft YaHei", sans-serif; "Microsoft YaHei", sans-serif;
font-weight: 400; font-weight: 400;
} }
@@ -264,7 +240,7 @@
margin-top: 8mm; margin-top: 8mm;
break-inside: avoid; break-inside: avoid;
font-family: font-family:
"Mdpdf Fandol Fang", "FangSong", "STFangsong", "Mdpdf Fandol Song", "FangSong", "STFangsong",
"Noto Serif CJK SC", serif; "Noto Serif CJK SC", serif;
font-size: 0.875em; font-size: 0.875em;
line-height: 1.7; line-height: 1.7;
+25
View File
@@ -64,5 +64,30 @@
"docxStyle": { "docxStyle": {
"preset": "official" "preset": "official"
}, },
"docxFonts": {
"faces": [
{
"family": "Mdpdf Fandol Song",
"aliases": ["FandolSong", "STZhongsong", "FangSong", "STFangsong", "KaiTi", "STKaiti", "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": "Mdpdf Fandol Song",
"aliases": ["FandolSong", "STZhongsong", "FangSong", "STFangsong", "KaiTi", "STKaiti", "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": "FandolHei",
"aliases": ["Mdpdf Fandol Hei", "Noto Sans CJK SC", "Source Han Sans SC", "SimHei", "Microsoft YaHei"],
"source": "theme-shared:official-fonts/FandolHei-Regular.woff2",
"weight": 400,
"license": "GPL-3.0-or-later WITH Font-exception-2.0"
}
]
},
"bundled": true "bundled": true
} }
+1 -1
View File
@@ -53,7 +53,7 @@
"aliases": ["FandolHei", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei"], "aliases": ["FandolHei", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei"],
"source": "theme-shared:official-fonts/FandolHei-Regular.woff2", "source": "theme-shared:official-fonts/FandolHei-Regular.woff2",
"weight": 700, "weight": 700,
"license": "OFL-1.1" "license": "GPL-3.0-or-later WITH Font-exception-2.0"
} }
] ]
}, },
+2 -2
View File
@@ -7,7 +7,7 @@
#write { #write {
color: var(--blind-ink); color: var(--blind-ink);
font-family: font-family:
"SimSun", "Noto Serif CJK SC", "Source Han Serif SC", serif; "FandolSong", "SimSun", "Noto Serif CJK SC", "Source Han Serif SC", serif;
font-size: 16px; font-size: 16px;
line-height: 1.7; line-height: 1.7;
overflow-wrap: break-word; overflow-wrap: break-word;
@@ -74,7 +74,7 @@
#write h6 { #write h6 {
color: #000; color: #000;
font-family: font-family:
"SimHei", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; "FandolHei", "SimHei", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
font-weight: 700; font-weight: 700;
} }
+25
View File
@@ -24,5 +24,30 @@
"docxStyle": { "docxStyle": {
"preset": "tender" "preset": "tender"
}, },
"docxFonts": {
"faces": [
{
"family": "FandolSong",
"aliases": ["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": ["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": "FandolHei",
"aliases": ["Noto Sans CJK SC", "Source Han Sans SC", "SimHei", "Microsoft YaHei"],
"source": "theme-shared:official-fonts/FandolHei-Regular.woff2",
"weight": 400,
"license": "GPL-3.0-or-later WITH Font-exception-2.0"
}
]
},
"bundled": true "bundled": true
} }
+1 -1
View File
@@ -11,7 +11,7 @@
#write { #write {
color: var(--business-ink); color: var(--business-ink);
font-family: font-family:
"Noto Sans CJK SC", "Source Han Sans SC", "FandolHei", "Noto Sans CJK SC", "Source Han Sans SC",
"Microsoft YaHei", sans-serif; "Microsoft YaHei", sans-serif;
font-size: 17px; font-size: 17px;
line-height: 1.75; line-height: 1.75;
+18
View File
@@ -30,5 +30,23 @@
"color": "#2563eb" "color": "#2563eb"
} }
}, },
"docxFonts": {
"faces": [
{
"family": "FandolHei",
"aliases": ["Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei"],
"source": "theme-shared:official-fonts/FandolHei-Regular.woff2",
"weight": 400,
"license": "GPL-3.0-or-later WITH Font-exception-2.0"
},
{
"family": "FandolHei",
"aliases": ["Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei"],
"source": "theme-shared:official-fonts/FandolHei-Regular.woff2",
"weight": 700,
"license": "GPL-3.0-or-later WITH Font-exception-2.0"
}
]
},
"bundled": true "bundled": true
} }
+2 -2
View File
@@ -8,7 +8,7 @@
#write { #write {
color: var(--tender-ink); color: var(--tender-ink);
font-family: font-family:
"Noto Serif CJK SC", "Source Han Serif SC", "FandolSong", "Noto Serif CJK SC", "Source Han Serif SC",
"Microsoft YaHei", "SimSun", serif; "Microsoft YaHei", "SimSun", serif;
font-size: 17px; font-size: 17px;
line-height: 1.75; line-height: 1.75;
@@ -78,7 +78,7 @@
#write h3, #write h3,
#write h4 { #write h4 {
font-family: font-family:
"Noto Sans CJK SC", "Source Han Sans SC", "FandolHei", "Noto Sans CJK SC", "Source Han Sans SC",
"Microsoft YaHei", sans-serif; "Microsoft YaHei", sans-serif;
font-weight: 700; font-weight: 700;
} }
+25
View File
@@ -27,5 +27,30 @@
"color": "#000000" "color": "#000000"
} }
}, },
"docxFonts": {
"faces": [
{
"family": "FandolSong",
"aliases": ["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": ["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": "FandolHei",
"aliases": ["Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei"],
"source": "theme-shared:official-fonts/FandolHei-Regular.woff2",
"weight": 400,
"license": "GPL-3.0-or-later WITH Font-exception-2.0"
}
]
},
"bundled": true "bundled": true
} }
+1 -1
View File
@@ -11,7 +11,7 @@
margin: 0 auto; margin: 0 auto;
color: var(--md-text); color: var(--md-text);
font-family: font-family:
"Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif; "FandolHei", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
font-size: 16px; font-size: 16px;
line-height: 1.75; line-height: 1.75;
overflow-wrap: break-word; overflow-wrap: break-word;
+18
View File
@@ -21,5 +21,23 @@
"docxStyle": { "docxStyle": {
"preset": "technical" "preset": "technical"
}, },
"docxFonts": {
"faces": [
{
"family": "FandolHei",
"aliases": ["Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei"],
"source": "theme-shared:official-fonts/FandolHei-Regular.woff2",
"weight": 400,
"license": "GPL-3.0-or-later WITH Font-exception-2.0"
},
{
"family": "FandolHei",
"aliases": ["Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei"],
"source": "theme-shared:official-fonts/FandolHei-Regular.woff2",
"weight": 700,
"license": "GPL-3.0-or-later WITH Font-exception-2.0"
}
]
},
"bundled": true "bundled": true
} }
+4 -4
View File
@@ -114,7 +114,7 @@ h4 {
*/ */
body { body {
font-family: "Merriweather", "PT Serif", Georgia, "Times New Roman", "STSong", 'Segoe UI Emoji','SF Pro', Serif; font-family: "Merriweather", "FandolSong", "PT Serif", Georgia, "Times New Roman", "STSong", 'Segoe UI Emoji','SF Pro', Serif;
line-height: 1.5rem; line-height: 1.5rem;
font-weight: 400; font-weight: 400;
} }
@@ -236,7 +236,7 @@ h5,
.h5, .h5,
h6, h6,
.h6 { .h6 {
font-family: "Lato", 'Helvetica Neue', Helvetica, sans-serif; font-family: "Lato", "FandolHei", 'Helvetica Neue', Helvetica, sans-serif;
font-weight: bold; font-weight: bold;
line-height: 1.2; line-height: 1.2;
margin: 1em 0 0.5em; margin: 1em 0 0.5em;
@@ -345,7 +345,7 @@ a {
line-height: 1.5em; line-height: 1.5em;
color: #7a7a7a; color: #7a7a7a;
background-color: #fafafa; background-color: #fafafa;
font-family: 'Lato', 'Helvetica Neue', Helvetica, sans-serif; font-family: 'Lato', "FandolHei", 'Helvetica Neue', Helvetica, sans-serif;
font-weight: 300; font-weight: 300;
clear: both; clear: both;
padding-left: 0; padding-left: 0;
@@ -358,7 +358,7 @@ a {
font-size:1.1rem; font-size:1.1rem;
} }
.md-tag { .md-tag {
font-family: 'Lato', 'Helvetica Neue', Helvetica, sans-serif; font-family: 'Lato', "FandolHei", 'Helvetica Neue', Helvetica, sans-serif;
} }
.code-tooltip { .code-tooltip {
background: white; background: white;
+85
View File
@@ -21,5 +21,90 @@
"docxStyle": { "docxStyle": {
"preset": "general" "preset": "general"
}, },
"docxFonts": {
"faces": [
{
"family": "Merriweather",
"aliases": ["PT Serif", "Georgia", "Times New Roman"],
"source": "pixyll/merriweather-v19-latin-300.woff",
"weight": 300,
"license": "OFL-1.1"
},
{
"family": "Merriweather",
"aliases": ["PT Serif", "Georgia", "Times New Roman"],
"source": "pixyll/merriweather-v19-latin-300italic.woff",
"weight": 300,
"style": "italic",
"license": "OFL-1.1"
},
{
"family": "Merriweather",
"aliases": ["PT Serif", "Georgia", "Times New Roman"],
"source": "pixyll/merriweather-v19-latin-700.woff",
"weight": 700,
"license": "OFL-1.1"
},
{
"family": "Merriweather",
"aliases": ["PT Serif", "Georgia", "Times New Roman"],
"source": "pixyll/merriweather-v19-latin-700italic.woff",
"weight": 700,
"style": "italic",
"license": "OFL-1.1"
},
{
"family": "Lato",
"aliases": ["Helvetica Neue", "Helvetica", "Arial"],
"source": "pixyll/lato-v14-latin-300.woff",
"weight": 300,
"license": "OFL-1.1"
},
{
"family": "Lato",
"aliases": ["Helvetica Neue", "Helvetica", "Arial"],
"source": "pixyll/lato-v14-latin-300italic.woff",
"weight": 300,
"style": "italic",
"license": "OFL-1.1"
},
{
"family": "Lato",
"aliases": ["Helvetica Neue", "Helvetica", "Arial"],
"source": "pixyll/lato-v14-latin-900.woff",
"weight": 900,
"license": "OFL-1.1"
},
{
"family": "Lato",
"aliases": ["Helvetica Neue", "Helvetica", "Arial"],
"source": "pixyll/lato-v14-latin-900italic.woff",
"weight": 900,
"style": "italic",
"license": "OFL-1.1"
},
{
"family": "FandolSong",
"aliases": ["STSong", "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": ["STSong", "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": "FandolHei",
"aliases": ["Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei"],
"source": "theme-shared:official-fonts/FandolHei-Regular.woff2",
"weight": 400,
"license": "GPL-3.0-or-later WITH Font-exception-2.0"
}
]
},
"bundled": true "bundled": true
} }
+25
View File
@@ -21,5 +21,30 @@
"docxStyle": { "docxStyle": {
"preset": "general" "preset": "general"
}, },
"docxFonts": {
"faces": [
{
"family": "FandolSong",
"aliases": ["Vollkorn", "Palatino", "Times", "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": ["Vollkorn", "Palatino", "Times", "SimSun"],
"source": "theme-shared:official-fonts/FandolSong-Bold.woff2",
"weight": 700,
"license": "GPL-3.0-or-later WITH Font-exception-2.0"
},
{
"family": "FandolHei",
"aliases": ["Arial", "Microsoft YaHei"],
"source": "theme-shared:official-fonts/FandolHei-Regular.woff2",
"weight": 400,
"license": "GPL-3.0-or-later WITH Font-exception-2.0"
}
]
},
"bundled": true "bundled": true
} }
+1 -1
View File
@@ -8,7 +8,7 @@ html, body {
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
} }
body { body {
font-family: "Vollkorn", Palatino, Times; font-family: "FandolSong", "Vollkorn", Palatino, Times;
color: #333; color: #333;
line-height: 1.4; line-height: 1.4;
text-align: justify; text-align: justify;