@AbrahamLee I've seen you've had some success making this work on Windows, following
this I got the example from the docs to show up in the menu but it doesn't run. Anyway, trying to run any Python from File > Run script doesn't do anything (and it never did for me, on several installations on Windows 10). Python only works when called externally like this:
"C:\Program Files (x86)\FontForgeBuilds\fontforge" -lang=py -script scripts\make.py
And from File menu, only FF scripts work.
Any pointers?
@Dave Crossland presumably you've got this all figured out? I'd be thankful for any help.
Comments
I have several files that make things work smoothly, but the main thing that helped me was to have one file that contained the scripts I actually want to use and another that is dedicated to loading those scripts into the Tools menu. If you want to PM me, I'd be happy to share the files so you can inspect exactly how I do it. It wasn't intuitive and I'm glad I figured it out. It's great to have the open capability. The only thing that really frustrates me is that you can only create the dialog boxes that FF has pre-coded. So, if you have a command that takes multiple inputs, it often requires multiple consecutive dialog boxes to get the data. On Linux we might be able to get around this since the python library is in the system-level python directory and you can use anything else there, but on Windows, there's no current way to integrate any of the other GUI libraries without some massive hacking. So, I've resorted to just living with the plethora of dialog boxes.
Anyway, let me know if you want to see my files.