No, the HTML in the htmlText field has no visibility into
the application's style declarations. YOu also cannot get or set styles in this
field using the MXML stylemanager or the getStyle/setStyle methods. The htmlText
field is just a convenience that comes from the Flash world.
HTH,
matt horn
From: Min Lieu [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 16, 2005 2:38 PM
To: [email protected]
Subject: [flexcoders] Using embedded fonts in the htmlText property
Hello,
I've embedded the Futura font family in my Flex application. Can the
text within the htmlText property of a mx:Text tag access these fonts?
For example, I have the following stylesheet "mystyle.css":
@font-face {
src: url("/fonts/lte50154.ttf");
fontFamily:futura;
}
.bodyText {
font-family: "futura";
font-size: 12pt;
text-align: left;
color: #000000;
}
And Ihave the following line within my mxml file:
<mx:Text htmlText="<span class='bodyText'>HELLO!</span>" />
Thanks!
Min

