The distinction is that wordwrapping should be optimal, as you know when you increase / decrease a fontsize, the wordwrapping changes.

jonathan howe wrote:
Is there an important distinction between scaling a TextField object and
changing the font size? Perhaps you are storing the formatting or there are
visual rendering implications or anything?? Otherwise, it seems like Joel's
solution would work nicely to achieve what you want.
-jonathan


On Wed, Nov 12, 2008 at 6:18 PM, Latcho <[EMAIL PROTECTED]> wrote:

I'm talking about font size, not stretching a container.
Increasing / decreasing font size to get an optimal fill of a box which
will have a fixed width and a certain height which can only be determined
during load time.
I could increase the font size of a textfield in a loop and measure it's
height on every point increase; when it overflows my wanted box-height I
take the font size of the  previous step.
Is there an easier way ?
Stijn

Joel Stransky wrote:

Sounds like a bad design decision to make titles of the same category
various sizes. But I think you can just set the .width property, then set
the .scaleY equal to the .scaleX or visa versa depending on which dimension
is more important.

On Wed, Nov 12, 2008 at 9:40 AM, Latcho <[EMAIL PROTECTED] <mailto:
[EMAIL PROTECTED]>> wrote:

   I need to place project-titles in a multiline textfield, wherof
   the width will be fixed, but sometimes this box might be of less
   height because of more space used by other displaying project
   elements.
   Is there a class that can dynamically regulate the font it's size
   to fit the loaded text to a certian textfield height of a multile
   textfield?
   The project titles are variable in character word length. How is
   this solvable.
   Thanks !
   Stijn

   _______________________________________________
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   <mailto:Flashcoders@chattyfig.figleaf.com>
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--
--Joel

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders





_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to