Skip to content
This repository has been archived by the owner on Dec 29, 2024. It is now read-only.

Commit

Permalink
feat: add glyphs option for font file size reduction (unjs#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
sushichan044 committed Dec 18, 2024
1 parent b4ac156 commit 3e1bad7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
glyphs?: string[]
}

export interface RemoteFontSource {
Expand Down

0 comments on commit 3e1bad7

Please sign in to comment.