From b79894fe74cc459dc813cb47edb528758cbac65b Mon Sep 17 00:00:00 2001 From: sushichan044 Date: Wed, 18 Dec 2024 16:27:15 +0900 Subject: [PATCH] feat: add glyphs option for font file size reduction (#61) --- src/types.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/types.ts b/src/types.ts index ebcc8a3..6902eea 100644 --- a/src/types.ts +++ b/src/types.ts @@ -18,6 +18,13 @@ export interface ResolveFontOptions { // TODO: improve support and support unicode range subsets: string[] fallbacks?: string[] + /** + * Specifies the specific characters / icons to download. + * This can reduce the size of the font file. + * + * Currently only supported by Google Fonts / Google Icons (Only available specifying the new 'Material Symbols' icons). + */ + glyphs?: string[] } export interface RemoteFontSource {