Skip to content

_addName() method fails in “Add STAT” script, starting in FontTools 4.47.2 #3442

Answered by anthrotype
arrowtype asked this question in Q&A
Discussion options

You must be logged in to vote

that script is using a private function _addName, which changed the type of the first parameter to be a TTFont instance (previously was a name table object). Besides the general recommendation not to use private methods, you can try to change your script so that it passes the font itself to the function

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by khaledhosny
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3441 on February 06, 2024 19:31.