Skip to content
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

color_glyph: remove assertion that width > 0 #412

Merged
merged 2 commits into from
Apr 28, 2022
Merged

Conversation

anthrotype
Copy link
Member

it's valid for fonts to have glyphs with zero advance width, e.g. combining marks

I stumbled on this while running maximum_color on a yet-to-be-published color font project, after exporting from Glyphs.app as an OT-SVG.

I wonder why the assertion was put that to begin with. Is it because when width is 0, a bitmap CBDT glyph would otherwise completely disappear (#402)?

it's valid for fonts to have glyphs with zero advance width, e.g. combining marks
@anthrotype anthrotype requested a review from rsheeter April 28, 2022 14:59
currently fails for bitmap format because of #404
@rsheeter
Copy link
Collaborator

Is it because when width is 0, a bitmap CBDT glyph would otherwise completely disappear

I think this was true but iirc should no longer be. In any case, definitely a bad assert, good catch.

@rsheeter rsheeter merged commit 70ae9d4 into main Apr 28, 2022
@rsheeter rsheeter deleted the remove-assert-width-0 branch April 28, 2022 20:45
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.

2 participants