Skip to content

googlefonts__vertical_metrics_regressions

Simon Cozens edited this page May 8, 2025 · 1 revision

Check if the vertical metrics of a family are similar to the same

family hosted on Google Fonts.

googlefonts/vertical_metrics_regressions

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

Rationale

If the family already exists on Google Fonts, we need to ensure that the checked family's vertical metrics are similar. This check will test the following schema which was outlined in Font Bakery issue #1162 [1]:

  • The family should visually have the same vertical metrics as the Regular style hosted on Google Fonts.

  • If the family on Google Fonts has differing hhea and typo metrics, the family being checked should use the typo metrics for both the hhea and typo entries.

  • If the family on Google Fonts has use typo metrics not enabled and the family being checked has it enabled, the hhea and typo metrics should use the family on Google Fonts winAscent and winDescent values.

  • If the upms differ, the values must be scaled so the visual appearance is the same.

[1] https://github.com/fonttools/fontbakery/issues/1162

Proposal

Profiles

  • googlefonts (in section 'Font File Checks')

Clone this wiki locally