Subsetting Display Typefaces to Sub-3KB Hero Headline Micro-Fonts
NFC Normalization and Deduplicated Scalar Extraction
Decorative display serifs, variable mastheads, and calligraphic script fonts often weigh 150 KB+ even when used exclusively for a three-word hero heading or brand wordmark. Compiling a specimen-specific micro-subset strips thousands of unused characters down to the exact 10 to 25 unique code points in your string—typically producing a 1 KB to 3 KB WOFF2 file that loads instantaneously.
Before passing your pasted text into harfbuzz-subset.wasm, our pipeline normalizes input strings to Unicode Canonical Composition (NFC) so decomposed macOS clipboard sequences (such as A + U+0304 combining macron) resolve cleanly to precomposed U+0100 mappings while flagging any characters absent from the source font’s cmap.
- Normalizes pasted text to NFC and deduplicates surrogate pairs across supplementary planes.
- Reports any missing characters up front before you deploy broken hero headlines.
- Preserves GSUB kerning and ligature substitutions applicable to your pasted letters.
- Outputs exact CSS unicode-range rules scoped strictly to your headline characters.
- Retains unmapped composite base contours so accented headline characters render without gaps.
- Ideal for above-the-fold mastheads, campaign banners, and interactive canvas typography.