The Code-Bin
Flash font name bug - can't use fonts with a ' in their name
Posted by: kode80 | July 21, 2009 @ 1:14pm
Revision 1 - Original post on July 21, 2009 @ 12:02pm

IO Code



Syntax Highlighting





Author Comments
Discovered yet another Font issue in Flash. Built in CS4. If you embed a font with a ' in the name it will be screwed. TextFields placed on the timeline will work fine however setting the font through code will fail. The exact code above will work fine with fonts that don't have a ' in the name. See comments in code for description of output.

Update: I confirmed this bug by manually removing the ' from the family name inside the font itself and sure enough it now works.
Rating


4.46 / 8
74 Votes