[swfmill] "ERROR: cubic beziers in fonts are not yet implemented." - why? :-)

Daniel Cassidy mail at danielcassidy.me.uk
Thu Nov 5 05:54:00 PST 2009


2009/11/5 armencho at gmail.com <armencho at gmail.com>:
> I am trying to import a .PFB font file, supposedly a PostScript Type 1
> font, and getting the quoted error. I thought swfmill uses FreeType
> for font operations? As far as I know FreeType supports PostScript
> Type 1 fonts, including cubic beziers. Is there some older version at
> work?

Flash doesn’t support cubic béziers natively. The SVG import works
around this by approximating cubic béziers with a series of quadratic
béziers, but I would hazard a guess that there is no such
approximation implemented for font importing. I’ll file a bug on
Launchpad to implement this but don’t hold your breath.


> Anything I can do?

You could submit a patch :).

Alternatively, use FontForge to convert the font to TrueType before
importing it. This will convert all the cubic béziers to quadratic
approximations.


Hope this helps,
Dan.



More information about the swfmill mailing list