Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

False-positive Device table warnings in variable fonts #79

Open
Hoolean opened this issue May 22, 2023 · 1 comment
Open

False-positive Device table warnings in variable fonts #79

Hoolean opened this issue May 22, 2023 · 1 comment

Comments

@Hoolean
Copy link

Hoolean commented May 22, 2023

Hello! : )

When Font Validator tests a variable font, it sometimes produces false-positive warnings for Device table values.

Variable fonts may repurpose Device tables as VariationIndex tables, for which 'startSize' and 'endSize' become 'deltaSetOuterIndex' and 'deltaSetInnerIndex' respectively. While Font Validator checks the format of the table before doing most checks, the size fields are interpreted prior to this and – as they contain indices – are often seen as invalid.

This bug can probably be resolved by moving the format check to encompass earliest parts of the function, which the spec suggests here as a means of handling this distinction.

@HinTak
Copy link
Owner

HinTak commented May 22, 2023

Sounds like a good issue for somebody to get familiar with the code and send a possible patch.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants