A missing feature in Flex is the ability to load fonts at runtime.
‘Why is this useful?’, you could ask. Well one situation is you’re creating an online rich text editor, and you want to add a font
to the font list. You would only have to edit the css and upload the new swf instead of the whole application. Or you want a client
to be able to add fonts without him having the source code from the application.
Luckily it’s possible in Flex to load runtime CSS compiled as an SWF with the StyleManager class.
StyleManager on LiveDocs
Fonts.css Example :
1 2 3 4 | @font-face { src:url("fonts/Arial.ttf"); fontFamily:"Arial"; } |
How to compile the CSS to SWF?
Read the rest of this entry »
