8000 [subset/COLR] fix error when subsetting mixed COLR v0/v1 leaves no v0 records by anthrotype · Pull Request #2308 · fonttools/fonttools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[subset/COLR] fix error when subsetting mixed COLR v0/v1 leaves no v0 records #2308

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 14, 2021

Conversation

anthrotype
Copy link
Member

Thanks @qxliu76 for reporting this bug!

I first add a failing test to repro the issue, then follow up with the fix

This currently throws a KeyError: ('uniE004', 'BaseGlyphRecordArray')
…in populateCOLRv0

Same when LayerV1List is empty. All these fields are optional in v1
…etting COLRv1 table

Thanks Qunxin for reporting the bug!
@anthrotype anthrotype merged commit cc5c992 into main May 14, 2021
@anthrotype anthrotype deleted the fix-colr-subset branch May 14, 2021 09:56
anthrotype added a commit to googlefonts/nanoemoji that referenced this pull request May 17, 2021
rsheeter pushed a commit to googlefonts/nanoemoji that referenced this pull request Jul 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0