diff --git a/index.d.ts b/index.d.ts index 407fe1d..1d77df8 100644 --- a/index.d.ts +++ b/index.d.ts @@ -551,9 +551,10 @@ export namespace FontEditor { * convert svg font to ttf object * @param svg svg text * @param options + * @param options.combinePath if true, combine path to one glyph, default is false * @returns */ - svg2ttfobject: (svg: string, options?: any) => TTF.TTFObject; + svg2ttfobject: (svg: string | Document, options?: {combinePath: boolean}) => TTF.TTFObject; /** * convert ttf font buffer to base64 uri * @param arrayBuffer ttf data @@ -568,6 +569,7 @@ export namespace FontEditor { */ ttf2icon: (arrayBuffer: ArrayBuffer | TTF.TTFObject, options?: { metadata: any; + iconPrefix?: string; }) => any; /** * convert ttf font buffer to woff2 font diff --git a/package.json b/package.json index e5062ef..e3b7f2b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fonteditor-core", - "version": "2.4.0", + "version": "2.4.1", "description": "fonts (ttf, woff, woff2, eot, svg, otf) parse, write, transform, glyph adjust.", "keywords": [ "sfnt",