I dont know if you think it is useful but I've extracted a text tool from my framework: SomaText.

It allows you to easily create TextField and apply styles from a stylesheet, you can set a lot TextField and TextFormat properties straight from the stylesheet if you wish. It is a single class that is extending the TextField built-in one, very easy to use.

Quick intro:
http://www.soundstep.com/blog/2009/01/07/somatext-standalone/

Source:
http://www.soundstep.com/blog/downloads/somatext/

List of properties you can use in the stylesheet:
http://www.soundstep.com/somaprotest/www/#/stylesheet/css-properties/

And for the curious, SomaText is part of Soma (MVC Framework):
http://www.soundstep.com/somaprotest/

Hope it helps.

Romu
www.soundstep.com






Rob Romanek wrote:
Hi Michael,

If your second font is not embedded in any text field but only available via linkage then while it is embedded in your file it is not available for usage. To make it available you need to use the registerFont function with your linked font. After that it should show up in any text field with embedFonts set to true.

hth,

Rob

On 12-Jan-09, at 3:45 PM, Mendelsohn, Michael wrote:

Hi list...

I am trying to set a TextField (embedFonts = true) to some htmlText. It
has a defaultTextFormat of a particular font embedded with linkage name
"XYZ".
I have two fonts in my project, the other one being linkage "XYZBold".

I want the htmlText to be something like:
"<font face='XYZBold'>XYZ Bold stuff</font><br>XYZ regular stuff";

"XYZ regular stuff" shows up, but "XYZ Bold stuff" doesn't show up.
Can't you embed two fonts in one TextField?


_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to