Foundry Technical Note · 19 September 2026

Engineering OpenType Variable Axes Without Stem Darkening

Designing a variable `.woff2` font involves far more than dragging Bézier handles between Light and Black masters; incompatible contour start points, missing `avar` piecewise mappings, or malformed `STAT` tables routinely break browser layout engines.

1. Non-Linear Axis Progression via the `avar` Table

Human perception of typographic weight follows an exponential rather than linear curve—a jump of 40 design-space units adds dramatic mass to a 32-unit Hairline stem (`+125%`), whereas the same 40-unit increment barely registers on a 210-unit Black stem (`+19%`). If a variable font maps CSS `font-weight: 100..900` linearly to stem thickness, intermediate weights (`400` to `600`) bunch up visually toward the heavy end.

Every Hudson Foundry variable master embeds an OpenType `avar` (Axis Variations) segment mapping normalized user coordinates (`-1.0` to `+1.0`) along a Lucas de Groot–derived progression curve so CSS `font-weight: 450` or `550` yields optically equidistant steps.

2. Point-Order Compatibility and Kink Prevention

In TrueType `glyf` (`gvar` tuple variations), diagonal strokes containing mixed stem angles—such as capital `N`, `K`, and `Z`—will develop visible mid-interpolation kinks whenever adjacent masters vary both horizontal and vertical handle ratios simultaneously. We enforce strict collinear tangent ratios across every corner-to-curve transition during build-time CI checks with `fontspector` and `harfbuzz` shaping harnesses.

Subset Hygiene for Web Delivery: When subsetting variable fonts with `pyftsubset`, always pass --layout-features+=kern,liga,tnum,case and retain the `STAT` table so Safari and Firefox DevTools inspect named instances accurately.

3. Recommended CSS `@font-face` Declaration

Property Recommended Value Purpose
src format("woff2-variations") Signals OpenType 1.8+ variable table support to modern engines.
font-weight 200 900 Prevents synthetic browser faux-bolding across the full continuous range.
font-optical-sizing auto Binds Mercer Display's `opsz` axis automatically to computed CSS point size.