Skip to content

Releases: typst/subsetter

Version 0.2.6

04 Jun 11:19

Choose a tag to compare

  • For variable fonts where the selected coordinates end up at the default instance, the subsetter now avoids instancing, instead reusing the existing outlines

Version 0.2.5

03 Jun 21:08

Choose a tag to compare

  • Fixed generated left-side bearing value for variable fonts. This bug could lead to wonky-looking kerning for variable fonts.

Version 0.2.4

28 May 15:38

Choose a tag to compare

  • Fixed a potential crash for invalid CFF fonts
  • Fixed potential crash for invalid hhea tables
  • Fixed a bug where CFF subroutines were not properly terminated
  • Fixed that storageOffset in name table was not respected
  • Fixed potentially invalid maxp data being emitted for variable TTF fonts
  • Fixed potentially invalid hinting data being emitted for variable TTF fonts
  • Fixed some potential overflows
  • Bumped skrifa to 0.42, kurbo to 0.13, and write-fonts to 0.48
  • Raised MSRV to Rust 1.85

Version 0.2.3

09 Sep 12:51

Choose a tag to compare

  • Added support for subsetting variable fonts by instancing them
    • This is feature-flagged behind the variable-fonts feature, which is now enabled by default
    • A new API subset_with_variations was added to specify the variation coordinates
  • Subsetting now preserves more name table records (7, 8, 9, 11, 12, 13, 14 from the spec)
  • Bumped the kurbo dependency to version 0.12
  • Added MSRV of Rust 1.82

Version 0.2.2

30 Jul 19:27

Choose a tag to compare

This release has no publicly-facing changes. Internally, the fxhash dependency was replaced by rustc-hash as fxhash is unmaintained.

Version 0.2.1

02 Apr 08:48

Choose a tag to compare

  • Performance improvements
    • Marked GlyphRemapper::{remap, get} as inlinable
    • Improved performance of GlyphRemapper by internally switching from BTreeMap to FxHashMap

Version 0.2.0

04 Sep 15:20

Choose a tag to compare

This release contains a full rewrite of the CFF subsetting and various improvements for TrueType subsetting, yielding highly reduced output sizes. This goes along with a new public API as the crate now requires its users to remap glyph IDs (this is required for minimizing file sizes). Thanks to @LaurenzV for their work on all of this!

0.1.1

19 Mar 19:55

Choose a tag to compare

0.1.1 Pre-release
Pre-release

Fixes two bugs with CFF subsetting.

0.1

14 Oct 16:11

Choose a tag to compare

0.1 Pre-release
Pre-release

This is the initial release of subsetter, a library for OpenType font subsetting.