Skip to content

os2_metrics_match_hhea

Simon Cozens edited this page May 8, 2025 · 2 revisions

Checking OS/2 Metrics match hhea Metrics.

os2_metrics_match_hhea

  • Applies to: TTF
  • Fontspector can hotfix?: no
  • Fontspector can fix sources?: no

Rationale

OS/2 and hhea vertical metric values should match. This will produce the same linespacing on Mac, GNU+Linux and Windows.

  • Mac OS X uses the hhea values.
  • Windows uses OS/2 or Win, depending on the OS or fsSelection bit value.

When OS/2 and hhea vertical metrics match, the same linespacing results on macOS, GNU+Linux and Windows. Note that fixing this issue in a previously released font may cause reflow in user documents and unhappy users.

Proposal

Profiles

  • universal (in section 'Universal Profile Checks')

  • googlefonts (in section 'Universal Profile Checks')

Clone this wiki locally