Question

Just drawing a simple text line.

With TLF text it looks pixelated and with classic text it looks just fine. enter image description here

Looks at the 's' and the 'r' they looks bad with TLF text.

Any ideas why this happens?

Était-ce utile?

La solution

From what I see, it's probably because classic text uses anti-aliasing, and you probably don't use it with the TLF text.

http://en.wikipedia.org/wiki/Spatial_anti-aliasing

Autres conseils

If you create the TLFTextField using pure AS, try to add custom antialiasing:

tlf.antiAliasType = AntiAliasType.ADVANCED;
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top