Exporting Fontlab to Glyphs


I know this subject has been touched upon before, but can’t seem to find a solution in previous threads. I’ve downloaded the export script from Github(https://github.com/schriftgestalt/Glyphs-Scripts/blob/master/Glyphs%20Export.py) and stored it in the fontlab macro folder and then tried running it in the FL Macro Panel. The script creates a file, but it is Zero bytes, and Glyphs states it can’t be opened. The Macro Panel returns a loooong output message that starts as follows.

SystemError: dynamic module not initialized properly
Traceback (most recent call last):
File “”, line 8, in
File “/Applications/code/RoboFab_599_plusAllDependencies/RoboFab/Lib/robofab/world.py”, line 94, in
from robofab.interface.all.dialogs import SelectFont, SelectGlyph
File “/Applications/code/RoboFab_599_plusAllDependencies/RoboFab/Lib/robofab/interface/all/dialogs.py”, line 169, in
from robofab.interface.all.dialogs_fontlab_legacy2 import *
File “/Applications/code/RoboFab_599_plusAllDependencies/RoboFab/Lib/robofab/interface/all/dialogs_fontlab_legacy2.py”, line 21, in
from Foundation import NSObject
File “/System/Library/Frameworks/Python.framework/Versions/Current/Extras/lib/python/PyObjC/Foundation/init.py”, line 8, in
import objc
File “/System/Library/Frameworks/Python.framework/Versions/Current/Extras/lib/python/PyObjC/objc/init.py”, line 24, in
File “/System/Library/Frameworks/Python.framework/Versions/Current/Extras/lib/python/PyObjC/objc/init.py”, line 21, in _update
import objc._objc as _objc
SystemError: dynamic module not initialized properly
File “”, line 0
SyntaxError: ‘utf8’ codec can’t decode byte 0x9f in position 4378: invalid start byte
Will write font to: /Users/Jeppe/Documents/typoprojekter/Fl->ufoTest.glyphs

I’m pretty new to working with scripts so, i might have overlooked something obvious to the more trained eye.
If any help, i can copy the whole macro output message in to thread.
Any help is greatly appreciated,



That doesn’t seem to be output form the export script. There are several references to modules that are not used in the script. Are you sure you run the right script. You need to select “Export Glyphs” in the macro toolbar in FLS.


Only to be sure, drag Glyphs Export.py and drop into the FontLab icon in the dock, doesn’t matter if FontLab is not running. This action will force FontLab to load the script into the Edit Macro panel. Now you need to open the font that you want to export and press run in the Edit Macro panel,

not in the Menu bar.


You can move the scripts to /Library/Application Support/FontLab/Studio 5/Macros, then they are available in FontLab’s Macro toolbar. This is documented in the readme, and in the comment of the script itself.


Thanks for the replies. I had some non-unicode components en the font which seems to have been creating some hickups. Everything is working now!


Could you send me the original .vfb to debug this?


Hej Georg, just wondering — works the macro also for the latest Fontlab Update Version VI?


Never tried it. They say that the FL6 supports the same macro. But I suspect the data model to be a bit different. But you can save a .ufo or maybe even a designspace document.


Thanks, will try it!