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

added two checks: consistent UPM across family, max 4 fonts per name ID 1 #2372

Merged
merged 6 commits into from Mar 6, 2019

Conversation

cjchapman
Copy link
Member

added two checks:

  • 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)

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'
Copy link
Collaborator

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'].)
Copy link
Collaborator

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.

tests/specifications/adobe_fonts_test.py Show resolved Hide resolved
@felipesanches felipesanches merged commit d6d5e8e into master Mar 6, 2019
@cjchapman cjchapman deleted the cjc-more-adobe-fonts-work branch March 6, 2019 17:46
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.

None yet

2 participants