I've look everywhere for a solution. Hopefully someone smarter than me, can figure this one out.
If you embed multiple non-system fonts into a flex project, and try to assign them to a rich text editors fontfamilyarray, the fonts will show up as defaults. If you associate1 of the embedded fonts to the fontfamily componenet of the rich text editor, you will get the embedded font to show. But, what if you want a collection of non-system embedded fonts to be available? For some reason, this simple idea, seems to be impossible. Below is what I have, its very close, but still doesn't work.
<mx:Style>
@font-face {
src:url("AABIGFICTION.swf");
fontFamily: "AABIGFICTION";
}
@font-face {
src:url("Baskerville_Old_Face.swf");
fontFamily: "Baskerville_Old_Face";
}
</mx:Style>
<mx:Script>
<![CDATA[
private function returnHandler():void {
RTE.fontFamilyArray = ["AABIGFICTION", "Baskerville_Old_Face"];
}
]]>
</mx:Script>
<mx:RichTextEditor id="RTE" title="Title" width="440" height="368" creationComplete="returnHandler();">
*NOTE*
*IF you assign the fontFamily within the RTE to 1 of the embedded non-system fonts, it will render the font.
*Below AAGBIGFICTION will show, but you will not be able to use any other font.
****
<mx:RichTextEditor id="RTE" title="Title" width="440" fontFamily="AABIGFICTION" height="368" creationComplete="returnHandler();">