1. Dalston driving lessons type

    September 15, 2008 by pierre


  2. Fontlab 5, Python and Robofab setup

    May 17, 2008 by pierre

    This is a small summary more than a proper “how-to”, about setting up FontLab 5, Python and Robofab on a Mac running OS 10.5. I hope that if your install is not working this might help you.

    Currently FontLab installer will put python 2.3 in your “Frameworks” directory. This is where all python versions should live in a standard setup (/Library/Frameworks/Python.framework/Versions), if you “cd” to this dir you should see python 2.5 there too.

    The path to python version 2.3 seems hardcoded into FontLab 5, there is a note on the FontLab website that explains how to trick it to use 2.4 or 2.5. This is mainly usefull if you are working with python in general and want to use modules that are in your 2.5 install without duplicating them otherwise using 2.3 is fine.

    To install robofab you will need to copy it where python (the version you are using with FontLab) can see it, in other words you need to copy Robofab in python “module search path“: a list of directories that python search for aditional modules to load.

    Currently there are two installers provided with robofab which will do this for you. The first one is a mac installer from Erik van Blokland. The second one is a install.py script that you can get from the current SVN repos.

    If you want to do this manually, find out where python look for modules, either by echoing the PYTHONPATH env. variable, or running this code:

    from distutils.sysconfig import get_python_lib
    print get_python_lib()

    and copy Robofab in the relevant folder. Then you need to restart FontLab and you can try to:

    import robofab