Skip to content

Make OS/2 table optional #50

@specious

Description

@specious

The code throws an error if the OS/2 table is missing in the source font.

In Apple's reference manual for TrueType fonts, the OS/2 table is listed as an optional table.

The OS/2 table reference says:

The 'OS/2' table consists of a set of metrics that are required by Windows. It is not fully used by Apple platforms.

It also says:

A number of fields in the 'OS/2' table replicate data found elsewhere in the font; most notably, the various ascent and descent fields mirror some of the contents of the horizontal header table. The macOS derives ascent and descent information from the latter; Windows from the former.

It seems that while the OS/2 table might play a role in a system font, it may not be necessary in a web font.

Is there a really good reason why a font should not pass without an OS/2 table? Perhaps it could produce a warning rather than an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions