Skip to content

OS/2.xAvgCharWidth: Guard against a ZeroDivisionError - #3015

Merged
anthrotype merged 1 commit into
mainfrom
guard-against-zerodivision
Mar 2, 2023
Merged

OS/2.xAvgCharWidth: Guard against a ZeroDivisionError#3015
anthrotype merged 1 commit into
mainfrom
guard-against-zerodivision

Conversation

@madig

@madig madig commented Mar 1, 2023

Copy link
Copy Markdown
Collaborator

The code was copied from ufo2ft. It includes an additional guard against a zero division error that seems to not have been a problem in fontTools before?

The code was copied from ufo2ft.
@madig
madig marked this pull request as ready for review March 1, 2023 19:53
@madig madig changed the title Guard against a ZeroDivisonError Guard against a ZeroDivisionError Mar 1, 2023
@madig madig changed the title Guard against a ZeroDivisionError OS/2.xAvgCharWidth: Guard against a ZeroDivisionError Mar 1, 2023
madig added a commit to googlefonts/ufo2ft that referenced this pull request Mar 1, 2023
@anthrotype
anthrotype merged commit e7c6d2a into main Mar 2, 2023
@anthrotype
anthrotype deleted the guard-against-zerodivision branch March 2, 2023 11:01
madig added a commit to googlefonts/ufo2ft that referenced this pull request Mar 7, 2023
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