Речь идёт об обычном лейбле.
Привожу код создания компонента:

Код AS3:
private function createHeaderTitleLabel():Label
{
var textFormat:TextFormat = FontManager.getTextFormatByQuestInfoWindowsTitleLabel();
var temp:Label = new Label();
temp.left = 140;
temp.top = 10;
temp.setStyle("textFormat", textFormat);
temp.setStyle("embedFonts", true);
return temp;
}
Часть класса FontManager:

Код AS3:
public static function getTextFormatByQuestInfoWindowsTitleLabel():TextFormat
{
return getTextFormat(FONT_FAMALY_STORY, FONT_SIZE_22, FONT_COLOR_DARK_BLUE, true);
}
protected static function getTextFormat(fontFamaly:String = null, size:uint = 12, color:uint = 0, bold:Boolean = false):TextFormat
{
var textFormat:TextFormat = new TextFormat();
textFormat.font = fontFamaly;
textFormat.size = size;
textFormat.color = color;
textFormat.bold = bold;
return textFormat;
}
Повторюсь: при таком подходе не задаётся размер и цвет текста создаваемого лейбла!
