Releases: Munter/subfont
Releases · Munter/subfont
Safer prefetch polyfill
This release replaces the very slim JS preload polyfill with a slightly larger one. This ensures that bundlers don't cause accidental overloading of unused variants by moving around the order of font-face declaration stylesheets.
Also fixed problem with subfont exiting if it encountered a page with no actively used font variants.
3.4.0
Local font subsetting
Breaking changes:
- Removed
--format
option. Subfont now automatically generates woff2 and woff files - Switched
font-display
default value fromauto
toswap
- Renamed
--inline-subsets
option to--inline-fonts
Features:
- Added
--[no-]recursive
option (@papandreou) - Added ability to subset locally with fonttools. Allows working with non-google fonts #3 #1
- Warn when glyphs are missing in original font #13
- Preload fonts with Javascript for browsers without preload support #5
- Output both woff2 and woff formats #4
Patches:
- Don't break when encountering existing preload hints for fonts
Inline CSS and inject font-display
- [minor] Added --inline-css option
- [minor] Added --font-display option
- [patch] Fixed missing preload hint attributes