Skip to content

Releases: Munter/subfont

Safer prefetch polyfill

02 Nov 08:32
Compare
Choose a tag to compare

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

24 Jun 17:26
Compare
Choose a tag to compare
  • Add support for custom CSS properties (#23)
  • Better handling of the font shorthand

Local font subsetting

10 Dec 22:04
Compare
Choose a tag to compare

Breaking changes:

  • Removed --format option. Subfont now automatically generates woff2 and woff files
  • Switched font-display default value from auto to swap
  • 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

05 Oct 14:48
Compare
Choose a tag to compare
  • [minor] Added --inline-css option
  • [minor] Added --font-display option
  • [patch] Fixed missing preload hint attributes