Skip to content

Conversation

@belluzj
Copy link
Contributor

@belluzj belluzj commented Apr 24, 2025

Implements #50

Elided fallback names:

  • Allow a NameRecord to be provided (e.g. a string or localised string) in place of an integer name ID
  • Error if an integer name ID is provided but does not exist in the font
  • Document the field in the example stylespace
  • Add tests for the new and existing behaviour

Other:

  • Document uv + tox setup
  • Remove unused imports

@Hoolean Hoolean force-pushed the fix-elided-fallback-name branch 3 times, most recently from 7e4a761 to 6e9cbe1 Compare April 25, 2025 10:23
@Hoolean Hoolean force-pushed the fix-elided-fallback-name branch from 6e9cbe1 to e6ac246 Compare April 25, 2025 10:55
@Hoolean Hoolean marked this pull request as ready for review April 25, 2025 10:58
belluzj and others added 4 commits May 26, 2025 16:28
Co-authored-by: Harry Dalton <harry.dalton@daltonmaag.com>
See fonttools/fonttools#3812 - the internal implementation of the name-
-adding function does a type check against dict, and so this type is
explicitly required by the builder function argument.
@Hoolean Hoolean force-pushed the fix-elided-fallback-name branch from 904bd87 to ee42ae1 Compare May 26, 2025 15:28
@Hoolean Hoolean merged commit ff5ab94 into master May 27, 2025
5 checks passed
@Hoolean Hoolean deleted the fix-elided-fallback-name branch May 27, 2025 10:33
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.

4 participants