Preventing Missing Base Contours in Split Latin-Ext Webfont Slices
How Composite Closure Works Across Split @font-face Slices
Polish, Czech, Slovak, Hungarian, Latvian, Lithuanian, and Turkish interfaces rely on Latin Extended-A characters (U+0100–U+017F) such as Ā, č, ę, ł, ń, ř, ś, and ž. When you serve Latin Core and Latin-Ext as two separate @font-face rules sharing the same font-family name, each WOFF2 file is rasterized independently for the glyphs matched by its unicode-range.
Here lies a subtle trap: inside TrueType glyf tables, Ā (U+0100) is usually a composite glyph referencing glyph ID A (U+0041) and macron (U+00AF). Because U+0041 is NOT in the Latin-Ext cmap, a broken subsetter drops A’s outline, causing Ā to render as a floating bar over empty space! HarfBuzz solves this automatically by retaining A and macron as unmapped component glyphs inside the Latin-Ext slice.
- Targets U+0100-017F (expandable to U+0100-024F, U+1E00-1EFF for Vietnamese and Extended-B).
- Keeps unmapped component outlines intact while leaving U+0041 unmapped in cmap.
- Zeroes unnecessary Latin Core cmap entries so browsers never double-match ASCII.
- Verifies composite glyph contour integrity immediately after subsetting.