AS3不支持嵌入式字体非常大的尺寸?

时间:2013-11-14 10:34:47

标签: actionscript-3 flash fonts

我在我的flash文件中嵌入了一个字体“Times New Roman”。我在TextFormat中使用此字体。但是当我分配非常大的文本大小(如150或200)时,文本仍然很小,就像它接近80大小一样。以下是代码:

// Embedded font with linkage "EngRegualar"
private var engRegular:Font = new EngRegular();
private var title_txt:TextField = new TextField();
private var title_txtFormat:TextFormat;

// In constructor:
title_txtFormat = new TextFormat(EngRegualar.fontName, 400, 0x000000);
title_txt.multiline = false;
title_txt.autoSize = "left";
title_txt.defaultTextFormat = title_txtFormat;
title_txt.text = "test"
addChild(title_txt);

我也尝试过其他一些字体,如DroidSans,Arial,Century。所有字体在某些时候停止增加。请看下面的截图,上面的红色文字是带有上面代码的动态文本,蓝色文字是舞台上简单的静态文本,具有相同的400大小的Times New Roman字体系列。 The above red text is dynamic text generated with above code and blue text is simple static text on stage with same 400 size of Times New Roman font family.

0 个答案:

没有答案
相关问题