question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does (should?) fontTools enforce "valueCount must == Coverage glyphCount" for SinglePosFormat2?

See original GitHub issue

Per OTSpec in SinglePosFormat2 subtables, the valueCountmust equal glyphCount in the Coverage table.” The attached ttx dump uses a SinglePosFormat2 with Coverage glyphCount of 2 and no ValueRecords (i.e. count = 0). ttx compiles this with the format2 subtable’s valueCount set to zero and a non-empty Coverage (count = 2), with no error or warning issued. Is this expected?

cc: @punchcutter gpos1_2_valueCount0.ttx.zip

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
behdadcommented, Jun 20, 2022

OTS to check though, no?

Yes, this is the kind of things that OTS does I believe.

0reactions
josh-hadleycommented, Jun 20, 2022

I’ll poke around there and see what’s going on. The current version doesn’t seem to flag it.

I’ll close this out as there’s no action needed here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

US6426751B1 - Font feature file processing - Google Patents
The feature file can be processed in combination with an existing font ... The font editor does not have to know details of...
Read more >
wafi.iit.cnr.it/multilingualweb/unicode/fonts/font...
('CoverageFormat1', [ ('uint16', 'CoverageFormat', None, None, 'Format identifier-format = 1'), ('uint16', 'GlyphCount', None, None, 'Number of glyphs in ...
Read more >
mozilla-central: changeset 476785 ...
Tell the // parent process the iframe accessible so it can link the ... + // define a js object to implement nsITreeView...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found