Ultrashock Forums > Flash > Flex
Rich Text Editor - Does not display multiple non-system embedded fonts

You are currently viewing our website as a guest which gives you limited access to forums, files and other resources.

Click here to join now for free, and start interacting with our members, download files and much more!

Click here if you are looking for our Flash files and other professional assets.
 
Post Reply | View first unread | Rate Thread Search this Thread | Thread Tools | Display Modes

#1
Bookmark and Share!
Rich Text Editor - Does not display multiple non-system embedded fonts
Old 2008-10-23

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();">
postbit arrow Be the first to comment! | 614 views postbit arrow Reply: with Quote   
Registered User
Ntoriuscpm is offline
seperator
Posts: 1
2008-10-23
Ntoriuscpm lives in United States
seperator
Thread Tools
Display Modes Rate This Thread
Rate This Thread: