'How can I remove glyphs from a WOFF?
Are there any javascript libraries that can shrink a WOFF (and WOFF2) font down to only the glyphs used in an SVG image? For example, given a font and an array of strings it will return the bare minimum font needed to display those strings.
My first thought was to use SVG fonts which would be relatively simple but unfortunately they aren't supported in most browsers. WOFF and WOFF2 are well supported and are becoming the standard but so far I've not had any luck finding a library that suits my needs.
Solution 1:[1]
I found the fontmin library which can do this. You can specifically use the glyph plugin
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Winston de Greef |
