Command line tool to optimize your webfont loading. Aggressive subsetting based on your font use, self-hosting of Google fonts and preloading
--subset-per-page
switch to reduce complexity. If you really need this feature, you can run subfont on each page.--inline-fonts
switch. The optimization will still be applied when it's suitable.Use browserslist to configure which font formats to supply subsets and fallbacks in, and whether to add the JS-based preload polyfill (#120)
Fix a regression in 5.1.0 (#121)
New features:
subfont --harfbuzz
), avoiding the dependency on Python (#56)Bugfixes:
This release removes the INFO message about fonttools not being installed if subfont has a way to handle subsetting using google fonts. If subfont finds actual local fonts and fonttools is not installed, you'll see the INFO message with an addition of a list of the exact fonts that couldn't be optimized.