Skip to content

[opentype/fsselection] check if fsSelection bit for WWS is set correctly #577

@ollimeier

Description

@ollimeier

What needs to be checked?

According to the opentype spec fsSelection bit 8 should be set if:
The font has 'name' table strings consistent with a weight/width/slope family without requiring use of name IDs 21 and 22.

Reference: https://learn.microsoft.com/en-us/typography/opentype/spec/os2#fsselection

Detailed description of the problem

I cannot find a test for that, so this would be a new check.

Resources and steps needed to reproduce the problem

Have a font, without name ID 21 and 22

Suggested profile

Suggest which profile the check should be added to. The most common are:

  • Vendor-specific: Google Fonts
  • Vendor-specific: Adobe Fonts
  • OpenType (requirements imposed by the OpenType specification)
  • Universal (broadly accepted best practices on the type design community)
  • Other:

Suggested result

Which log result level should the check have:

  • 🔥 FAIL (An issue that must be corrected for the font to function properly)
  • ⚠️ WARN (A potential issues that may need to be addressed)

Metadata

Metadata

Assignees

Labels

New check proposalWe expect new check proposals to include a detailed rationale description and a suggested check-id

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions