You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This could be useful for development, but results in an error:
[fred@pc fontforge]$ fontforge -script imp.py -new -quiet
Traceback (most recent call last):
File "imp.py", line 3, in <module>
f = fontforge.fonts()[0]
IndexError: tuple index out of range
Seems like trying to solve this in the totally general way would be a big pain. Better to add -new to the arguments processed by scripting.c:_CheckIsScript() (possibly enhancing the loop to remove the ordering constraints). That way this would also pose no barrier to #3922 .
(I take it the alternative is to try to get the scripting initialization to use the general options processing code.)
This could be useful for development, but results in an error:
Apparently the script is run before a new font is made.
Of course, we can do:
But now we can't run the same script in the «Execute Script» dialog as in the command line interface.
The text was updated successfully, but these errors were encountered: