You can't scale a font, but you can scale the component that the font is in
by using scaleX and scaleY.  However, this might not work in all cases
because it will also scale other visual attributes of the component (such as
a border).  If you have this problem you are going to need to create (or
subclass) your own component and scale the UITextField that renders the font
and then set the width and height of the TextField to the desired size.

- Dan

On 1/23/07, Jurgen Beck <[EMAIL PROTECTED]> wrote:

   This may be an odd one and I know that you guys are going to respond
that you shouldn't really do this in Flex considering that Flex applications
are something different than Flash movies. :-)  So here it goes:



Has anyone figured out a way to scale fonts (text, either with embedded
fonts or system fonts) in Flex? Can it be done, and if so, what's best
practice?



Rather than resizing the label, text, or text area containers, I need to
actually scale the font size in the objects.



Thanks,



Jurgen

Reply via email to