Shared font crashes swf

I am trying to use a shared font in my swf. In a simple swf with minimal code, it works fine, but when I move it to my main project and compile, something happens. The swf is published wiithout any error messages, but never seems to initialise. Some of the graphics are rendered, but not all, and nothing works. Without the font, everything is fine.

Has anyone encountered this before?