Releases: Munter/subfont
Releases · Munter/subfont
v6.0.0
- Always use harfbuzz for subsetting fonts, fonttools and Python no longer required!
- Don't use Google Web Fonts' subsetting service, always do the work locally.
- Remove support for the
--subset-per-page
switch to reduce complexity. If you really need this feature, you can run subfont on each page. - Remove support for the
--inline-fonts
switch. The optimization will still be applied when it's suitable.
v5.2.1
- #123 Respect silent:true wrt. the console output (Andreas Lind)
- #126 Support subfont --formats foo,bar and fix weirdness with --formats consuming further non-option arguments (Andreas Lind)
Add support for configuring subfont via browserslist
Use browserslist to configure which font formats to supply subsets and fallbacks in, and whether to add the JS-based preload polyfill (#120)
v5.1.1
v5.1.0
New features:
- Experimental support for local subsetting using harfbuzzjs (
subfont --harfbuzz
), avoiding the dependency on Python (#56) - Self-host the fallback CSS and fonts for Google Fonts (#116)
- Also report the number of code points used on each page when subsetPerPage is false (#114)
- Make all subsets available on every page where the original font is in scope, helping with server-side rendered Gatsby sites (#111)
Bugfixes:
CSS sourcemaps
- Added CSS sourcemaps handling. Output should now correctly map to your original sources
- Improved Unicode-range output. Output will now be smaller for contiguous ranges
Avoid fallback font loading
Semver Patch Changes
- #104 Always include the space character U+20 in subsets (Andreas Lind)
- #103 Inject unicode-range into all the @font-face declarations for the given family when glyphs are missing (Andreas Lind)
- #102 Do not preload unused variants in a self-hosting scenario (Andreas Lind)
Fallback improvements
v5.0.4 (2020-06-30)
- #95 Warn if fetching an entry point results in an HTTP redirect (Andreas Lind)
- #97 Do not preload unused variants in the JavaScript-based polyfill (Andreas Lind)
- #100 Inject unicode-range into the original @font-face declaration when it's missing some of the glyphs that are used (Andreas Lind)
- #99 Avoid using bluebird (Andreas Lind)
Node 8 deprecation
Breaking changes
- Dropped node 8 compatibility
Fixes
- #90 Don't break when an unused variant points at a non-existent file (Andreas Lind)
- #87 Fix uniq-ification of strings that might contain non-UTF-16 chars (Andreas Lind)
- Silence pyftsubset output when checking for availability and it isn't installed
- Fix wrong size calculation when running subsetting using google fonts service
Avoid fonttools spam
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.
Pull requests
- #67 Only warn about missing fonttools install if we are actually trying t… (Peter Müller)