Skip to content

New check: presence of GSUB5/GPOS7 #3643

@simoncozens

Description

@simoncozens

Versions of fonttools >=4.14.0 (19 August 2020) perform an optimisation on chained contextual lookups, expressing GSUB6 as GSUB5 and GPOS8 and GPOS7 where possible (when there are no suffixes/prefixes for all rules in the lookup).

However, makeotf has never generated these lookup types and they are rare in practice. Perhaps before of this, Mac's CoreText shaper (and probably other environments) do not correctly interpret these lookup types, meaning that these lookups will be ignored by the shaper, and fonts containing these lookups will have unintended positioning and substitution errors.

I think this should not be a FAIL because the fonts are technically correct (it's totally Apple's fault), but it should be a very severe WARN! I'll work on a PR for it.

Metadata

Metadata

Assignees

Labels

New check proposalATTENTION: Please, report proposals on the Fontspector project instead!

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions