Builds physical TrueType subsetting plans.
This module does not yet rewrite the final .ttf program. It provides
the deterministic planning pieces needed for that step: binary hashes,
composite glyph dependency expansion, table selection, and TrueType
checksum calculation.
Summary
Types
@type plan() :: %{ binary_hash: binary(), requested_glyphs: [non_neg_integer()], glyphs: [non_neg_integer()], composite_dependencies: [non_neg_integer()], rebuild_tables: [binary()], checksums: %{optional(binary()) => non_neg_integer()} }
Functions
@spec checksum(binary()) :: non_neg_integer()
@spec checksums(%{optional(binary()) => binary()}) :: %{ optional(binary()) => non_neg_integer() }
@spec plan(PaperForge.Fonts.TrueType.t(), Enumerable.t()) :: plan()