diff --git a/index.d.ts b/index.d.ts index 44d8b68..e96d7e6 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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 }; diff --git a/index.js b/index.js index 99b4233..2cbc3ad 100644 --- a/index.js +++ b/index.js @@ -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;