Skip to content

[family_and_style_max_length] Modernize check#5049

Merged
felipesanches merged 1 commit intofonttools:mainfrom
felipesanches:modernize_check__family_and_style_max_length
Oct 2, 2025
Merged

[family_and_style_max_length] Modernize check#5049
felipesanches merged 1 commit intofonttools:mainfrom
felipesanches:modernize_check__family_and_style_max_length

Conversation

@felipesanches
Copy link
Copy Markdown
Collaborator

@felipesanches felipesanches commented Oct 2, 2025

Note: This is a followup to PR #5020

Original message written by @arrowtype:

Relates to issue #2179, specifically later comments and testing, like #2179 (comment)

Changes:

  • Change main static font check to consider NameID 1 (FONT_FAMILY_NAME) rather than NameID 4 (FULL_FONT_NAME).
  • Change VF check to test NameID 16 + STAT particles.
  • Consider removing test of NameID 6 ... I ended up leaving this, but noting in its warning message that the issue is probably only with pre-Mac OS X systems.
  • Update tests to pass with new check criteria.

Note: I later noticed that this PR actually removes the checking of NameID 6.

@felipesanches
Copy link
Copy Markdown
Collaborator Author

The git history of PR #5020 was getting too convoluted so I git squashed everything into a single commit, rebased it with git main and fixed some linting warnings and updated the CHANGELOG file.

This is much cleaner for us to resume work reviewing the check update.

@felipesanches felipesanches force-pushed the modernize_check__family_and_style_max_length branch 2 times, most recently from 8803166 to 9202385 Compare October 2, 2025 15:47
Relates to issue fonttools#2179, specifically later comments and testing, like fonttools#2179 (comment)

Changes:

- Change main static font check to consider NameID 1 (FONT_FAMILY_NAME) rather than NameID 4 (FULL_FONT_NAME).
- Change VF check to test NameID 16 + STAT particles.
- Update tests to pass with new check criteria.
@felipesanches felipesanches force-pushed the modernize_check__family_and_style_max_length branch from 9202385 to a50e11e Compare October 2, 2025 17:48
@felipesanches felipesanches merged commit 4c8d7bf into fonttools:main Oct 2, 2025
49 checks passed
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