-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
2,187 additions
and
450 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { fontkitInterface } from './pkg/fontkit.js'; | ||
|
||
export const Font = fontkitInterface.Font; | ||
export const FontKit = fontkitInterface.FontKit; | ||
export const TextMetrics = fontkitInterface.TextMetrics; | ||
export const numberWidthToStr = fontkitInterface.numberWidthToStr; | ||
export const strWidthToNumber = fontkitInterface.strWidthToNumber; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
{ | ||
"name": "fontkit-rs", | ||
"version": "0.0.7-beta.1", | ||
"version": "0.0.9-beta.3", | ||
"description": "Toolkit used to load, match, measure, and render texts", | ||
"main": "pkg/bundler/index.js", | ||
"main": "index.js", | ||
"directories": { | ||
"example": "examples", | ||
"test": "tests" | ||
}, | ||
"files": [ | ||
"pkg/**/*", | ||
"node.js", | ||
"index.js", | ||
"Readme.md" | ||
], | ||
"author": "Zimon Dai <[email protected]>", | ||
|
@@ -66,6 +66,7 @@ | |
}, | ||
"type": "module", | ||
"dependencies": { | ||
"@bytecodealliance/preview2-shim": "^0.16.1", | ||
"walkdir": "^0.4.1" | ||
} | ||
} |
Oops, something went wrong.