No Clean Feed - Stop Internet Censorship in Australia
«
»

AS3, International

TextField vs TextArea .. spot the difference

07.22.08 | 2 Comments

In the flash site I’m working on, I have a TextField in one section and a TextArea (Flash) component in another. I am using the Verdana font. The TextField works perfectly. The TextArea on the other hand, for some reason, renders the font in a weird ugly way.

I suspected it might be something to do with embedding fonts, so I made a small movie with three views of the same text: a TextField with fonts embedded, a TextArea, and a TextField without the font embedded. Sure enough, the TextArea has the same ugliness as the TextField without the font embedded (click to see fullsize and look carefully at the glyphs) :

Broken TextArea example

What’s going on here? I’ve tried creating a font symbol in the library, instantiating it, using Font.registerFont(), and using the object’s fontName property. No difference.

Can anyone help? Everywhere I look I see similar problems but no solutions …

related

2 Comments

have your say

Add your comment below, or trackback from your own site. Subscribe to these comments.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

:

:


«
»
Close
E-mail It