madcat
06-10-2009, 07:05 PM
I can format the labels text with:
var format:TextFormat = new TextFormat();
format.font = "Myriad Pro";
format.color = 0x336699;
format.size = 13;
format.bold = true;
group1_button.setStyle("textFormat", format);
...but the text shows up rough, no smoothing. With a text field, I can add the following:
format.embedFonts = true;
format.antiAliasType = AntiAliasType.ADVANCED;
// but have to use tf.setTextFormat(format);
How can apply the same to a RadioButton label?
If I've missed this somewhere forgive me. The 5 posts that show up in the search stop at changing the font size only.
Thanks in advance.
var format:TextFormat = new TextFormat();
format.font = "Myriad Pro";
format.color = 0x336699;
format.size = 13;
format.bold = true;
group1_button.setStyle("textFormat", format);
...but the text shows up rough, no smoothing. With a text field, I can add the following:
format.embedFonts = true;
format.antiAliasType = AntiAliasType.ADVANCED;
// but have to use tf.setTextFormat(format);
How can apply the same to a RadioButton label?
If I've missed this somewhere forgive me. The 5 posts that show up in the search stop at changing the font size only.
Thanks in advance.