googlefonts / googlefonts/fontations
[otexplorer] Panic when accessing COLR.version
- Dominant language
- Rust
- Stars
- 826
- Forks
- 75
- Avg merge
- 22h 33m
- Merged PRs (30d)
- 75
Description
`$ cargo r /Users/drott/dev/color-fonts/build/test_glyphs-glyf_colr_1.ttf -q COLR.version`
```
Running `/Users/drott/dev/fontations/target/debug/otexplorer /Users/drott/dev/color-fonts/build/test_glyphs-glyf_colr_1.ttf -q COLR.version`
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', read-fonts/src/tables/../../generated/generated_colr.rs:275:42
```
While for example
```
$ cargo r /Users/drott/dev/color-fonts/build/test_glyphs-glyf_colr_1.ttf -q post.version
$ cargo r /Users/drott/dev/color-fonts/build/test_glyphs-glyf_colr_1.ttf -q hhea.version
```
work fine.
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the panic with the `cargo r ... -q COLR.version` command, then inspect `read-fonts/src/tables/../../generated/generated_colr.rs` around line 275 and compare it with the working `post.version` and `hhea.version` queries. Done means querying `COLR.version` no longer panics and returns a value like the other table-version queries.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli, devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100