I'm trying to embed a system font in ActionScript to rotate a UITextField on a Canvas but it looks very jaggy. In fact, I'm trying to embed Verdana, but it looks like a low-res version of Times New Roman. I'm using AS3 only, no MXML, since it's in an AS3 Class.
I'm embedding the font like this :
[Embed(systemFont='Verdana', fontName='EmbedFont', mimeType="application/x-font")] private var EmbedFont:Class;
I then use it like this :
var ef : TextFormat = new TextFormat("EmbedFont",14); tfTitle.defaultTextFormat = ef; var tfTitle : UITextField = new UITextField; tfTitle.embedFonts = true; tfTitle.rotation = 270;
Any idea of what I'm doing wrong ? Thanks.
Have you tried with any other font?
Yes, changed it to Arial, same result, same ugly font. I tried to play with
the Anti-Aliasing functions, still nothing.
Got it working, the addChild portion of the code was in a loop, there was in fact 15 UITextFields on top of each other. Or, the label is still in Times New Roman, even if I specified Verdana.