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
+15
View File
@@ -0,0 +1,15 @@
declare module "fontverter" {
export type FontFormat = "sfnt" | "woff" | "woff2";
export interface Fontverter {
convert(
content: Buffer,
targetFormat: FontFormat,
sourceFormat?: FontFormat
): Promise<Buffer>;
detectFormat(content: Buffer): FontFormat;
}
const fontverter: Fontverter;
export default fontverter;
}