Skip to content

opentype__varfont__valid_nameids

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

Validates that all of the name IDs in an instance record are within the correct range

opentype/varfont/valid_nameids

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

Rationale

According to the 'fvar' documentation in OpenType spec v1.9 https://docs.microsoft.com/en-us/typography/opentype/spec/fvar

The axisNameID field provides a name ID that can be used to obtain strings from the 'name' table that can be used to refer to the axis in application user interfaces. The name ID must be greater than 255 and less than 32768.

The postScriptNameID field provides a name ID that can be used to obtain strings from the 'name' table that can be treated as equivalent to name ID 6 (PostScript name) strings for the given instance. Values of 6 and "undefined" can be used; otherwise, values must be greater than 255 and less than 32768.

The subfamilyNameID field provides a name ID that can be used to obtain strings from the 'name' table that can be treated as equivalent to name ID 17 (typographic subfamily) strings for the given instance. Values of 2 or 17 can be used; otherwise, values must be greater than 255 and less than 32768.

Proposal

Profiles

  • opentype (in section 'Opentype Specification Checks')

  • universal (in section 'Opentype Specification Checks')

  • googlefonts (in section 'Opentype Specification Checks')

Clone this wiki locally