Skip to content

Commit

Permalink
feat: export GlyphBitmap in js
Browse files Browse the repository at this point in the history
  • Loading branch information
zimond committed Jun 19, 2024
1 parent 0c8e9d1 commit 49d70dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import {
FontInfo,
FontKey,
AlibabaFontkitFontkitInterface,
GlyphBitmap,
} from './pkg/interfaces/alibaba-fontkit-fontkit-interface';

export import strWidthToNumber = AlibabaFontkitFontkitInterface.strWidthToNumber;
export import numberWidthToStr = AlibabaFontkitFontkitInterface.numberWidthToStr;
export { FontKit, Font, FontInfo, FontKey };
export { FontKit, Font, FontInfo, FontKey, GlyphBitmap };
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ export const FontKit = fontkitInterface.FontKit;
export const TextMetrics = fontkitInterface.TextMetrics;
export const numberWidthToStr = fontkitInterface.numberWidthToStr;
export const strWidthToNumber = fontkitInterface.strWidthToNumber;
export const GlyphBitmap = fontkitInterface.GlyphBitmap;

0 comments on commit 49d70dc

Please sign in to comment.