I tried the code and I do see in the drop down combo list the 
complete Fonts which are available but when I select them the 
RichTextEditor does not render the Font.

Here is my code:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; 
layout="absolute" creationComplete="init()">
        
        <mx:RichTextEditor id="re" x="184" y="78" title="Title"/>

        <mx:Style source="style/main.css"/>                     
                        
        <mx:Script>
                <![CDATA[
                        
                        private function init():void
                        {                               

re.fontFamilyArray =    re.fontFamilyArray =    ["M 
Regular","Machinegun","MailBomb","Mandingo"];           

        }
                        
                        
                ]]>
        
        </mx:Script>
        
        <mx:TabNavigator/>
        <mx:Tree/>
        
        
</mx:Application>



=======================
AND HERE IS MY CSS:
=======================


*
//----------------------------
//  Global styles
//----------------------------
*/
.global
{
    highlightAlphas:        .5, .25;
    borderColor:            #939A9D;
    headerColors:           #A65904, #E68701;
    themeColor:             #75B1CE;
    rollOverColor:          #D6E6EE;
    selectionColor:         #B8D5E4;    
}

@font-face {
        src:url('./fonts/tahoma.ttf');
        src:url('./fonts/M Regular.ttf');
        src:url('./fonts/Machinegun.ttf');
        src:url('./fonts/MailBomb.ttf');
        src:url('./fonts/Mandingo.ttf');
        src:url('./fonts/Manual SSi Italic.ttf');
        src:url('./fonts/Marker Board Display SSi.ttf');
        src:url('./fonts/MarkerFeltThin-Plain Regular.ttf');
        src:url('./fonts/MarkerFeltThin.ttf');
        src:url('./fonts/Market Regular.ttf');
        src:url('./fonts/Marquee Moon.ttf');
        src:url('./fonts/Masterforce Solid.ttf');
        src:url('./fonts/Mattbats.ttf');
        src:url('./fonts/Menta Display SSi.ttf');
        src:url('./fonts/Mercat Display SSi Italic.ttf');
        src:url('./fonts/Mexacali.ttf');
        src:url('./fonts/micross.ttf');
        src:url('./fonts/Microstyle ATT Bold.ttf');
        src:url('./fonts/Mikey Jax.ttf');
        src:url('./fonts/Milkfresh.ttf');
        src:url('./fonts/milky well.ttf');
        src:url('./fonts/Misconstrued.ttf');
        src:url('./fonts/Miserable.ttf');
        src:url('./fonts/MisterBig Regular.ttf');
        src:url('./fonts/Mistwetter.ttf');
        src:url('./fonts/Mixed up.ttf');
        src:url('./fonts/ModernTypewriterCond-Bold.ttf');
        src:url('./fonts/MOLTOR3.ttf');
        src:url('./fonts/MONKEY-F.ttf');
        src:url('./fonts/Monotone Regular.ttf');
        src:url('./fonts/Monsters Attack!.ttf');
        src:url('./fonts/moonie.ttf');
        src:url('./fonts/MotterFemD.ttf');
        src:url('./fonts/Munsterm.ttf');
        src:url('./fonts/Muse Display SSi.ttf');
        src:url('./fonts/MVSans Bold.ttf');
        src:url('./fonts/Myopia.ttf');            
    fontFamily: "MyFonts";  
}




Please Help this thing is driving me nuts .... :(

Thank you for all the help,


Sean.

Reply via email to