From 49d70dceceab7b9074e28233cb5552ccb18e07ec Mon Sep 17 00:00:00 2001 From: "zhuoxian.dzx" Date: Wed, 19 Jun 2024 10:18:47 +0800 Subject: [PATCH] feat: export GlyphBitmap in js --- index.d.ts | 3 ++- index.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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;