Skip to main content
March 19, 2010
Question

Making a smooth rotated TLF component?

  • March 19, 2010
  • 1 reply
  • 445 views

As the situation in this picture, I simply created a textlayout  dynamically on the stage and rotated it, however it looks like twisted  by something.

Even  though I created a textlayout and rotated it in Flash IDE, it shows the same result.

While big font may looks normal, I need a solution of small font rotating without "twisted".

By the way, I can't embed font in this project cause chinese fonts need 5 mb and more that slow down the loading speed..

This topic has been closed for replies.

1 reply

March 19, 2010

It's unfortunate, but device font rendering on Windows is bad, particularly in small point sizes and in rotated text. I've personally pushed for a fix for this, but it's not going to happen for the next release.

Embedding the font provides better rendering, but does increase the size of the swf. You might look into embedding a subset of the font you need, particularly if there are only a few glyphs that you mean to rotate. You can choose which glyphs to embed using the unicodeRange property in your @font-face declaration.