Pure Elixir TrueType binary subsetter.
Strips unused glyphs and updates loca / glyf tables correctly to minimize PDF size.
Summary
Functions
Subsets a TrueType binary by dropping unused glyphs and truncating the font.
Returns {:ok, subsetted_ttf_bytes} or {:error, reason}.
Functions
@spec subset(binary(), [non_neg_integer()]) :: {:ok, binary()} | {:error, term()}
Subsets a TrueType binary by dropping unused glyphs and truncating the font.
Returns {:ok, subsetted_ttf_bytes} or {:error, reason}.