Skip to content

v0.5.0

Choose a tag to compare

@Lockyc Lockyc released this 02 Oct 02:23
· 3 commits to main since this release

What's new since v0.4.0

  • render --transparent — with --png, the PNG has an alpha channel and whatever the page leaves transparent (a background: transparent html and body) is alpha 0 instead of white. A render that comes back without alpha fails rather than passing. --transparent without --png is a usage error.
  • fonts --subset latin — cuts each font to Basic Latin, Latin-1 Supplement, common punctuation (U+2010–2027, U+2030–203A) and the euro sign with hb-subset before embedding. Open Sans Regular: the font goes from 147 KB to 33 KB, its CSS from 197 KB to 44 KB. Takes .ttf or .otf input and keeps that format; without the flag, output is unchanged.
  • New engine: hb-subset (HarfBuzz), pinned at a minimum version and checked by plate doctor (brew install harfbuzz, or libharfbuzz-bin on Debian/Ubuntu). Only fonts --subset needs it.