feat: 完成 DOCX 视觉门禁与字体兼容映射

This commit is contained in:
SkyJourney
2026-07-31 20:13:19 +08:00
parent 10bc62cee4
commit e5da699ea3
32 changed files with 3015 additions and 17 deletions
@@ -39,6 +39,10 @@ describe("DOCX 字体嵌入", () => {
family: "FandolFang",
subfamily: "Regular",
postscriptName: "FandolFang-Regular",
panose: [0, 0, 5, 0, 0, 0, 0, 0, 0, 0],
unicodeRanges: [0x80000001, 0x00002000, 0x00000002, 0],
codePageRanges: [0x00060007, 0],
fixedPitch: false,
fsType: 0x0008,
permission: "editable",
noSubsetting: false,
@@ -123,6 +127,9 @@ describe("DOCX 字体嵌入", () => {
"FandolHei",
"FandolKai"
]);
expect(
prepared.map((font) => font.metadata.weightClass)
).toEqual([400, 700, 400, 400, 400]);
expect(
prepared.every((font) => font.metadata.signature === "OTTO")
).toBe(true);