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.

COLR need to count for reachability (com.google.fonts/check/unreachable_glyphs)

See original GitHub issue

Observed behaviour

Checks on Noto Color Emoji claim vast #s of unreachable glyphs. My guess is COLR v0 and/or v1 don’t “count” when computing reachability.

WARN: Check font contains no unreachable glyphs ([com.google.fonts/check/unreachable_glyphs](https://font-bakery.readthedocs.io/en/stable/fontbakery/profiles/universal.html#com.google.fonts/check/unreachable_glyphs))
⚠ WARN The following glyphs could not be reached by codepoint or substitution rules:

glyph05311
glyph10700
glyph21429
glyph16679
glyph20585
glyph30485
glyph08398
glyph18035
glyph39093
glyph29709
And 35524 more.

Ref https://github.com/google/fonts/pull/4994#issuecomment-1197611451.

Expected behaviour

COLR should count as a way to reach glyphs.

Resources and exact process needed to replicate

https://github.com/googlefonts/color-fonts has a set of sample font sthat may be useful in testing.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:20 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
anthrotypecommented, Aug 17, 2022

new visitor module will help you more easily traverse all PaintGlyph and PaintColrGlyph nodes

COLR Paint objects already have a more specialized traverse method, which is also used by the fonttools subsetter, see:

https://github.com/fonttools/fonttools/blob/e494b118c4dd471fa268f817915249fd36858a10/Lib/fontTools/subset/__init__.py#L2112-L2123 https://github.com/fonttools/fonttools/blob/e494b118c4dd471fa268f817915249fd36858a10/Lib/fontTools/ttLib/tables/otTables.py#L1576-L1588

1reaction
felipesanchescommented, Aug 17, 2022

A kind +1 to this. The current build of Nabla reports more than 750 unreachable glyphs, even though they are all referenced by the COLR table.

The Nabla.ttf saved as an asset of the GH Action you referenced here does not fail the check implementation in our current git main branch (future FB v0.8.10 release).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Are these used as components by otherwise reachable glyphs ...
com.google.fonts/check/unreachable_glyphs Check font contains no unreachable glyphs with AvimodeLAB20211125-Regular.otf Rationale: Glyphs ...
Read more >
Material Symbols and Icons - Google Fonts
Introducing Material Symbols. Material Symbols are our newest icons consolidating over 2,500 glyphs in a single font file with a wide range of...
Read more >
Fontbakery Check Report
Check font contains no unreachable glyphs · Check if each glyph has the recommended amount of contours. · Ensure dotted circle glyph is...
Read more >
COLR - Color Table (OpenType 1.9) - Typography
The PaintColrGlyph table allows a color glyph definition, referenced by a base glyph ID, to be re-used as a sub-graph within multiple color...
Read more >
universal — Font Bakery 0.7.34 documentation
Font contains unique glyph names? Rationale: Duplicate glyph names prevent font installation on Mac OS X. com.google.fonts/check/unwanted_tables ...
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