-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[makeotf] Broken '-ga' option #497
Comments
you don't need to extend the Calling the activate.bat script will ensure the venv's Scripts folder is at the beginning of the PATH, so typing If you pip install with |
if you installed the afdko inside a virtual environment then you need to call the activate script before you can start using it, every time you launch a new cmd.exe (or powershell) window. |
Thank you Cosimo, Yes, I set it up in virtualenv like recommended. Now I understand I have to start the activate script every time before I use makeotf. makeotf -h works now - but if I try to compile my projects working nicely for years and with the older fdks, I get this tree of errors: (afdko_env) d:__Font_Dev_fontbench__astype_Wood_H>makeotf -f 01\New\hein Traceback (most recent call last): Have I done something wrong? |
are you using python 3? |
I use phyton 2.7 - the version installed by FontLab Studio 6. |
@astype @msousa Hi Andreas, You are entering the command line correctly, but have found an old bug in MakeOTF.py. I can reproduce this with the current code base, by using the '-gf' option before the -'ga' option. You can work around this by reversing the order of these options in your command line. I suggest that prior use of the '-gf' option should allow the '-ga' option to be used later, but should make it unnecessary to do so. Currently you do need to specify -ga' in order to turn on use of the GOADB file. |
I never understood what the purpose of the |
@frankrolf It was so that you didn't have to enter the '-gf' option and the GOADB path. If you enter only '-ga', MakeOTF will look in series of default locations for the GOADB file. This almost the only way I invoke use of the GOADB file. I agree that it '-gf' is used, you should not also have to enter '-ga'. |
@astype thanks for the report. I'll look into this next week. |
It does not matter if the -ga command is written in first place. If I don't use the switch -r (release mode) makeotf will crash. -r have do be placed before -ga -gf and the other stuff - strange. sample: not working makeotf -f 04\New\fontn.pfa -o ready\WoodBonnet-G-No4-New.otf -ff 04\New_features.txt -mf _FontMenuNameDB.txt -gf GOA_GTF.txt -S -ga -osbOn 7 -osbOff 8 -osbOff 9 -r sample: working makeotf -f 04\New\fontn.pfa -o ready\WoodBonnet-G-No4-New.otf -ff 04\New_features.txt -mf _FontMenuNameDB.txt -gf GOA_GTF.txt -r -S -ga -osbOn 7 -osbOff 8 -osbOff 9 |
@frankrolf if you use |
System: Windows 7 Pro
Hello Miguel,
I have done all the steps to install the latest Adobe FDK like it's described on the afdko entry page.
(pip, virtualenv, afdko_env\Scripts\activate.bat - all works fine)
In the "old" fdk installation an path was set, so I could access "makeotf" (or makeotf.cmd) without typing the full install path from anywhere on the system.
e.g. "makeotf -h"
The new FDK is installed at
%USERPROFILE%afdko_env\Lib\site-packages\afdko\Tools\win
in my case
c:\Users\Andreas\afdko_env\Lib\site-packages\afdko\Tools\win
Typing "makeotf" has no effect. "Path not found" - ok, maybe I have to set the path by myself to the new install directory? So I set a new path:
c:\Users\Andreas\afdko_env\Lib\site-packages\afdko\Tools\win
But no success. Only if I call the makeotfexe.exe file with full path I can work with it.
e.g. c:\Users\Andreas\afdko_env\Lib\site-packages\afdko\Tools\win\makeotfexe.exe -h
... and this is sucks.
Maybe it's not much I have to fix or change. Did you have a clue for me?
Thank you.
Andreas
The text was updated successfully, but these errors were encountered: