Hello,
I'm using the latest build released 11th of August of AFDKO on Windows 8.1.
Whenever I the command:
tx -t1 font.ttf font.pfa
I get:
tx: file error <Permission denied> [(t1w) tmpfile]
tx: fatal error
I believe I have installed the AFDKO properly.
It is in my user's Documents/bin folder, the environment's PATH is set correctly, and I have full read/write access to those folders.
The only way I can run that command -- and therefore, compile a TTF/OpenType font via makeotf --, is to elevate the user's privileges by running cmd.exe as administrator.
That's a bit weird.
---
Another sepatate issue when running makeotf on Windows is that MakeOTF.py fails to execute a series of commands that call up ttx as a separate process.
These commands fail to run because the Windows command prompt does not accept 'single quotes' to escape spaces inside files paths, like inside bash and similar on osx or linux.
To be able to run from the windows cmd.exe, MakeOTF.py should use only "double quotes" instead.
For example, in the fixPost() function:
command = "ttx -t GlyphOrder -t post '%s'" % (inputFilePath)
on Windows, ttx will complain that "'font.ttf'" is of an Unknown format, because of the single quotes in the filename. By swapping the single quotes with the double quotes (or escaping the double quotes), the Python code will work fine and the shell command will be executed inside Windows cmd.exe:
command = 'ttx -t GlyphOrder -t post "%s"' % (inputFilePath)
Needless to say, everything works fine on a Mac.
Thank you for your support.
All best,
Cosimo