Skip to main content
Participant
October 5, 2010
Question

Scaling the container

  • October 5, 2010
  • 1 reply
  • 728 views

We are experiencing some issues with kerning and other spacing between characters when we scale the container. We have textflows in modules that need to scale to a fullscreen AIR application. When we do this, the spacing between characters becomes an issue, some characters are really spaced out while others become attached to or overlap another. Is there some way to redraw/recalculate the text? I also noticed that this issue does not happen on a Mac but only on a PC.

This topic has been closed for replies.

1 reply

Adobe Employee
October 5, 2010

I believe the best way to avoid that problem is to use embedded fonts.  Next best way is to avoid scaling the rendering and scale the point size though that may not be what you are looking for.

Hope that helps,

Richard

toad013Author
Participant
October 5, 2010

Yes, embedding the font would be great. Unfortunately, this is a multilingual application and embedding a 20mb font to support all the characters isn't a good idea. We are currently trying different workarounds similar to what you have suggested, but if there's another solution i'm all ears. thanks.

Adobe Employee
October 12, 2010

One other thing you could try if you're willing to recompile the SWC is to override the ParagraphElement.updateTextBlock function to include this line:

_textBlock.applyNonLinearFontScaling = true;

This will make regular (non-scaled) text on Windows look worse, but should make the scaled text look a little better. Might be something to try if scaling the font size won't work.

- robin