Problems running the generator on my Mac

30 views
Skip to first unread message

Michael

unread,
Jan 8, 2012, 2:24:50 PM1/8/12
to cufón
Hi, I installed fontforge via macports.

Using the generator via command line works like a charme:

php convert.php --fontforge /opt/local/bin/fontforge -u "U+??" /
Volumes/Data/Users/michael/Documents/Fonts/myFont.ttf 1>
MyFont.font.js

is generating the js font in the generate directory.

But I need to use the webinterface for setting up customs settings.

After fixing permissions in this directory:
/var/folders/zg/7y40p7cj53vgfn3d6k7v42yr0000gn/T/

I’m getting no more errors, but the script continues to exit with
status 5 »The file you uploaded could not be converted«.

Below the output of my php_error.log

[08-Jan-2012 20:23:36] [cufon]: Uploaded myFont.ttf
[08-Jan-2012 20:23:36] [cufon]: Processing /Applications/MAMP/tmp/php/
phpHjHRPb
[08-Jan-2012 20:23:36] [cufon]: Converting to SVG with filename /var/
tmp//cufon_5439056134f09ed38183dd1.58111278.svg
[08-Jan-2012 20:23:36] [cufon]: Executing command: env /opt/local/bin/
fontforge -script '/var/tmp//
cufon_14697619004f09ed38185907.76297999.pe'
[08-Jan-2012 20:23:37] [cufon]: Exited with status 5

Any ideas?

Michael

unread,
Jan 9, 2012, 4:08:16 PM1/9/12
to cufón
Problem solved. I switched from MAMP to the internal apache delivered
with OS X for this particular task.
After activating PHP my Javascript fonts are generated just as
expected.

Don’t know what’s the problem with MAMP. Seems that I’m encountering
some weird permission issues?!?
Reply all
Reply to author
Forward
0 new messages