Skip to content

Commit

Permalink
chore: update types
Browse files Browse the repository at this point in the history
  • Loading branch information
kekee000 committed Jul 17, 2024
1 parent 52f31a1 commit 582bba7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 582bba7

Please sign in to comment.