Skip to content

Releases: Munter/subfont

v6.0.0

18 Apr 18:58
696a004
Compare
Choose a tag to compare
  • 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

01 Sep 20:50
Compare
Choose a tag to compare
  • #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

02 Aug 19:28
Compare
Choose a tag to compare

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

27 Jul 07:16
Compare
Choose a tag to compare

Fix a regression in 5.1.0 (#121)

v5.1.0

26 Jul 14:24
Compare
Choose a tag to compare

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:

  • Sort the code points numerically before converting to unicode ranges (#107)
  • Sometimes failing to get the woff2 written by pyftsubset (2abac1a)
  • Convert Google fonts to woff/woff2 locally, avoid "Missing glyph fallback detected" error when generating a big subset (#115)

CSS sourcemaps

12 Jul 13:43
Compare
Choose a tag to compare
  • 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

05 Jul 22:03
Compare
Choose a tag to compare

Semver Patch Changes

Fallback improvements

30 Jun 08:55
Compare
Choose a tag to compare

v5.0.4 (2020-06-30)

Node 8 deprecation

24 May 20:17
Compare
Choose a tag to compare

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

02 Nov 16:26
Compare
Choose a tag to compare

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)

Commits to master