Actionscript 3 在flash cs5中禁用嵌入字体的文本字体别名

Actionscript 3 在flash cs5中禁用嵌入字体的文本字体别名,actionscript-3,flash,Actionscript 3,Flash,有没有办法关闭嵌入字体的抗锯齿功能?我正在使用以下代码,但遗憾的是,我在Actionscript 3参考中没有看到任何选项,在使用动态文本字段时,如果在“别名”下选择位图文本[no anti-alias]选项,则可以获得相同的结果 TF = new TextField(); TF.embedFonts = true; TF.selectable = false; TF.defaultTextFormat = new TextFormat(_font, _fontSize, _fontColor)

有没有办法关闭嵌入字体的抗锯齿功能?我正在使用以下代码,但遗憾的是,我在Actionscript 3参考中没有看到任何选项,在使用动态文本字段时,如果在“别名”下选择位图文本[no anti-alias]选项,则可以获得相同的结果

TF = new TextField();
TF.embedFonts = true;
TF.selectable = false;
TF.defaultTextFormat = new TextFormat(_font, _fontSize, _fontColor);
TF.autoSize = TextFieldAutoSize.LEFT;
TF.height = _maskHeight;
TF.x = _maskWidth;
TF.text = getNextMessage();
TF.antiAliasType = AntiAliasType.ADVANCED;
addChild(TF);

有什么想法吗?

根据Adobe提供的文档,您不能关闭嵌入式字体的抗锯齿功能:“嵌入式字体是抗锯齿的,这意味着它们的边缘平滑以便于阅读。当文本大小较大时,这一点尤为明显。”您可以在这里看到更详细的内容:

我也一直在寻找这样做,因为我有一个奇怪的问题,就是日语文本不能在Myriad Pro中呈现,除非在CS6 TextField属性检查器中将“反别名”下拉菜单设置为“位图文本[无反别名]”——但是似乎没有任何方法通过ActionScript选择此设置

有趣的是,尝试在stage上创建两个文本字段,它们除了实例名称和此设置之外是相同的,然后测试movie>debug>list变量,并得到以下输出:

对于“位图文本”作为反别名设置的文本字段:

Edit Text: Target="_level0.bitmaptext_txt"
textColor = 0, multiline = true, scroll = 1,
antiAliasType = "normal",
mouseWheelEnabled = true, variable = null, restrict = null,
gridFitType = "pixel",
selectable = false, bottomScroll = 1, filters = [object #1, class 'Array'] [], background = false,
maxhscroll = 0, styleSheet = undefined,
type = "dynamic",
autoSize = "none",
textWidth = 98, wordWrap = true, maxChars = null, hscroll = 0,
thickness = 0, borderColor = 0, html = false, backgroundColor = 16777215,
condenseWhite = false,
text = "hello world",
htmlText = "hello world",
sharpness = 0, textHeight = 26, border = false, password = false,
embedFonts = true, length = 11, tabIndex = undefined, maxscroll = 1
Edit Text: Target="_level0.antialiasanimation_txt"
textColor = 0, multiline = true, scroll = 1,
antiAliasType = "normal",
mouseWheelEnabled = true, variable = null, restrict = null,
gridFitType = "pixel",
selectable = false, bottomScroll = 1, filters = [object #2, class 'Array'] [], background = false,
maxhscroll = 0, styleSheet = undefined,
type = "dynamic",
autoSize = "none",
textWidth = 93, wordWrap = true, maxChars = null, hscroll = 0,
thickness = 0, borderColor = 0, html = false, backgroundColor = 16777215,
condenseWhite = false,
text = "hello world",
htmlText = "hello world",
sharpness = 0, textHeight = 26, border = false, password = false,
embedFonts = true, length = 11, tabIndex = undefined, maxscroll = 1
对于“动画反别名”作为反别名设置的文本字段:

Edit Text: Target="_level0.bitmaptext_txt"
textColor = 0, multiline = true, scroll = 1,
antiAliasType = "normal",
mouseWheelEnabled = true, variable = null, restrict = null,
gridFitType = "pixel",
selectable = false, bottomScroll = 1, filters = [object #1, class 'Array'] [], background = false,
maxhscroll = 0, styleSheet = undefined,
type = "dynamic",
autoSize = "none",
textWidth = 98, wordWrap = true, maxChars = null, hscroll = 0,
thickness = 0, borderColor = 0, html = false, backgroundColor = 16777215,
condenseWhite = false,
text = "hello world",
htmlText = "hello world",
sharpness = 0, textHeight = 26, border = false, password = false,
embedFonts = true, length = 11, tabIndex = undefined, maxscroll = 1
Edit Text: Target="_level0.antialiasanimation_txt"
textColor = 0, multiline = true, scroll = 1,
antiAliasType = "normal",
mouseWheelEnabled = true, variable = null, restrict = null,
gridFitType = "pixel",
selectable = false, bottomScroll = 1, filters = [object #2, class 'Array'] [], background = false,
maxhscroll = 0, styleSheet = undefined,
type = "dynamic",
autoSize = "none",
textWidth = 93, wordWrap = true, maxChars = null, hscroll = 0,
thickness = 0, borderColor = 0, html = false, backgroundColor = 16777215,
condenseWhite = false,
text = "hello world",
htmlText = "hello world",
sharpness = 0, textHeight = 26, border = false, password = false,
embedFonts = true, length = 11, tabIndex = undefined, maxscroll = 1
正如你所看到的,除了“object#1”、“object#2”属性之外,这两个属性之间没有明显的区别——我不相信这真的有什么作用