Skip to content

Commit

Permalink
Clarify user expectations for getStatNames
Browse files Browse the repository at this point in the history
Closes #2890
  • Loading branch information
madig committed Nov 16, 2022
1 parent 8e9bf42 commit 7c83736
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Lib/fontTools/designspaceLib/statNames.py
Expand Up @@ -56,9 +56,13 @@ def getStatNames(
Also computes localizations.
If not enough STAT data is available for a given name, either its dict of
localized names will be empty (family and style names), or the name will be
None (PostScript name).
If not enough STAT data is available for a given name, either its dict of localized
names will be empty (family and style names), or the name will be None (PostScript
name).
Note: this method does not consider info attached to the instance, like
family name. The user needs to override all names on an instance that STAT
information would compute differently than desired.
.. versionadded:: 5.0
"""
Expand Down

0 comments on commit 7c83736

Please sign in to comment.