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
added two checks: consistent UPM across family, max 4 fonts per name ID 1 #2372
Conversation
an adobe-fonts check for consistent units per em across the family an opentype check for max of 4 fonts per family name (i.e. name ID 1)
@@ -106,6 +109,21 @@ def com_adobe_fonts_check_name_empty_records(ttFont): | |||
yield PASS, ("No empty name table records found.") | |||
|
|||
|
|||
@check( | |||
id='com.adobe.fonts/check/consistent_upm' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it would be good to add here a rationale=
attribute with an overview of the reasoning behind this check.
failed = False | ||
family_names = list() | ||
for ttFont in ttFonts: | ||
# family_names.append(ttFont['name'].) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this commented-out line. The code below substituites it.
…4 fonts in font list
added two checks:
adobe-fonts
check for consistent units per em across the familyopentype
check for max of 4 fonts per family name (i.e. name ID 1)