Silly me - I found the answer myself. The font face has to be specified
in the html font tag not with the setStyle() method. 

Happy new year everybody!

R

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robin
Burrer
Sent: Tuesday, 2 January 2007 9:31 AM
To: Flashcoders mailing list
Subject: [Flashcoders] v2 text area htmlText and embedFonts 

Hi there,

I'm having trouble with the v2 text area component.
The problem is I want to display html text in the component + I want to
use an embedded font. Using embedded fonts with normal text works fine
and html text with device font's works fine as well. But using both at
the same time just doesn't work :-( 

Here's the code 

// if I set the html property to true the text is not displayed unless I

// change the embedFonts property to false ..
//myTa.html = true;

myTa.setStyle("fontSize", "12");
myTa.setStyle("fontFamily", "cg");
myTa.setStyle("color", "0xff2366");
myTa.embedFonts = true;

this.myTa.text = "Test <br> test<br> test";

Any ideas? 


Cheers 


Robin


_______________________________________________
Flashcoders@chattyfig.figleaf.com
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
_______________________________________________
Flashcoders@chattyfig.figleaf.com
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