feat: 完成 DOCX 视觉门禁与字体兼容映射
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user