Skip to content

opentype__fsselection

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

Checking OS/2 fsSelection value.

opentype/fsselection

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

Rationale

The OS/2.fsSelection field is a bit field used to specify the stylistic qualities of the font - in particular, it specifies to some operating systems whether the font is italic (bit 0), bold (bit 5) or regular (bit 6).

This check verifies that the fsSelection field is set correctly for the font style. For a family of static fonts created in GlyphsApp, this is set by using the style linking checkboxes in the exports settings.

Additionally, the bold and italic bits in OS/2.fsSelection must match the bold and italic bits in head.macStyle per the OpenType spec.

Proposal

Profiles

  • opentype (in section 'Opentype Specification Checks')

  • universal (in section 'Opentype Specification Checks')

  • googlefonts (in section 'Opentype Specification Checks')

Clone this wiki locally