python support for fontforge

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

python support for fontforge

Postby rc » May 27th, '14, 17:42

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
rc
 
Posts: 4
Joined: Jun 10th, '11, 02:15

Re: python support for fontforge

Postby doktor5000 » May 27th, '14, 21:59

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
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18067
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: python support for fontforge

Postby rc » May 28th, '14, 06:56

Thank you. By rebuilding fontforge with --enable-pyextension, I added the missing files in /usr/lib64/python2.7/site-packages/ .
rc
 
Posts: 4
Joined: Jun 10th, '11, 02:15

Re: python support for fontforge

Postby doktor5000 » May 28th, '14, 20:12

Please mark the thread accordingly by editing the topic of the first post and prefix it by [SOLVED], thanks
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18067
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest