xemic
11-14-2009, 10:11 PM
Hello,
I have a Sprite and it has a TextField as a child. If that Sprite gets transformed, the TextField does not (at least not how I want it). One way to make it transformable is to turn it into a Bitmap. But when this Bitmap gets transformed, there is no anti-aliasing (or maybe little, it turns out ugly at least). Now I have two questions:
- is it possible to make it have some anti-aliasing?
- is there another way to make a TextField transformable?
Cheers!
EDIT: Yay for Google. Apparently I needed to have a swf have embedded a font and then use
[Embed(source="*location of the swf*", fontFamily="Georgia")]
and somewhere else:
var format:TextFormat = new TextFormat();
format.font = "Georgia";
text.embedFonts = true;
text.antiAliasType = AntiAliasType.ADVANCED;
text.defaultTextFormat = format;
Thanks for your help!
I have a Sprite and it has a TextField as a child. If that Sprite gets transformed, the TextField does not (at least not how I want it). One way to make it transformable is to turn it into a Bitmap. But when this Bitmap gets transformed, there is no anti-aliasing (or maybe little, it turns out ugly at least). Now I have two questions:
- is it possible to make it have some anti-aliasing?
- is there another way to make a TextField transformable?
Cheers!
EDIT: Yay for Google. Apparently I needed to have a swf have embedded a font and then use
[Embed(source="*location of the swf*", fontFamily="Georgia")]
and somewhere else:
var format:TextFormat = new TextFormat();
format.font = "Georgia";
text.embedFonts = true;
text.antiAliasType = AntiAliasType.ADVANCED;
text.defaultTextFormat = format;
Thanks for your help!