feat: 实现 DOCX 可编辑字体嵌入

This commit is contained in:
SkyJourney
2026-07-31 16:18:30 +08:00
parent f3847f3e4b
commit 10bc62cee4
32 changed files with 2195 additions and 76 deletions
+3 -3
View File
@@ -10,7 +10,7 @@
#write {
color: var(--report-ink);
font-family:
"Noto Serif CJK SC", "Source Han Serif SC",
"FandolFang", "Noto Serif CJK SC", "Source Han Serif SC",
"Microsoft YaHei", "SimSun", serif;
font-size: 18px;
line-height: 1.8;
@@ -32,7 +32,7 @@
#write h3,
#write h4 {
font-family:
"Noto Sans CJK SC", "Source Han Sans SC",
"FandolHei", "Noto Sans CJK SC", "Source Han Sans SC",
"Microsoft YaHei", sans-serif;
font-weight: 700;
}
@@ -108,7 +108,7 @@
color: #fff;
background: var(--report-navy);
font-family:
"Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
"FandolHei", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
text-align: center;
}
+16
View File
@@ -21,6 +21,22 @@
"left": "28mm"
}
},
"docxFonts": {
"faces": [
{
"family": "FandolFang",
"aliases": ["FangSong", "STFangsong", "Noto Serif CJK SC", "Source Han Serif SC", "Microsoft YaHei", "SimSun"],
"source": "theme-shared:official-fonts/FandolFang-Regular.woff2",
"license": "GPL-3.0-or-later WITH Font-exception-2.0"
},
{
"family": "FandolHei",
"aliases": ["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"
}
]
},
"docxStyle": {
"preset": "formal"
},