PDA

View Full Version : Embedded font is ugly


JessyDiamond
11-12-2009, 01:15 PM
Hi,

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.

JessyDiamond
11-12-2009, 04:31 PM
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.