feat: 实现 DOCX 可编辑字体嵌入
This commit is contained in:
+15
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user