You have to use the real font name in the css, then you can use embedded
fonts.

-----Oorspronkelijk bericht-----
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens Rodrigo Schramm
Verzonden: woensdag 22 maart 2006 18:48
Aan: Flashcoders mailing list
Onderwerp: [Flashcoders] CSS and Embedded fonts

Can I use a embedded font with CSS???

var styles:Object = new TextField.StyleSheet();
                       
 formulario.embedFonts = true;           
 styles.setStyle("text",
        {
               fontFamily: 'MyFont',
               fontSize: '24px',
                   color: '#006600'}
            );
 
      textArea.styleSheet = styles;
      textArea.html = true;
      textArea.text = "<text>this is a test</text>";

PS.   I created a new Font Symbol  with linkage = "MyFont".


but this don't work...



_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to