PDA

View Full Version : Flash rescaling text boxes


paulm
02-04-2009, 05:30 PM
Hey everyone, I was wondering if anyone could shed some light on an issue I am having with the way flash scales text.

When a window is set to autoscale, text seems to scale in an odd way. It will scale up but also alter the layout of the text within the text box. For example, words that appeared on one line while scaling, might appear on the next line once the window has been scaled to a different size.

The simple fix for it is to add line breaks at the end of each line manually. This solution is unrealistic and is also not 100%.

Does anyone know of a way I can scale text without it altering the layout / formatting of the text, or is this just the way flash does it.

rawmantick
02-10-2009, 01:09 PM
The thing is that text is scaled not like a graphics (any proportion), but the most matching text size is selected. So it's obvious that the number of sizes is finite, and scaling is discrete.

To make the flash page unscalable you need to
stage.scaleMode = StageScaleMode.NO_SCALE;

To have text be scaled as desired you have to convert it to vector graphics... It can be done through font embedding or something that. I'm not really proficient in that... You have to dig further to that direction...