Page 1 of 1

python support for fontforge

PostPosted: May 27th, '14, 17:42
by rc
I'm trying to install a package that invokes fontforge from python, and when the script tries to
import fontforge, psMat
I get the error message
ImportError: No module named fontforge

Is some python support for fontforge missing, and where can I obtain it?

Thanks for any tips.

(I am running Mageia 4 for x86_64)

--RC

Re: python support for fontforge

PostPosted: May 27th, '14, 21:59
by doktor5000
Which package are you trying to install?

EDIT: Just had a quick look, and it seems fontforge needs to be recompiled. Important hint here:
http://fontforge.org/python.html
In python terms fontforge embeds python. It is possible to build fontforge so that it is also a python extension (configure --enable-pyextension)


Related, you may want to check http://fontforge.org/scripting-tutorial.html

Re: python support for fontforge

PostPosted: May 28th, '14, 06:56
by rc
Thank you. By rebuilding fontforge with --enable-pyextension, I added the missing files in /usr/lib64/python2.7/site-packages/ .

Re: python support for fontforge

PostPosted: May 28th, '14, 20:12
by doktor5000
Please mark the thread accordingly by editing the topic of the first post and prefix it by [SOLVED], thanks