【发布时间】:2011-09-29 01:10:25
【问题描述】:
我怀疑是否有人能提供帮助,但我想我会发帖以防万一......
我正在尝试让 Flash 使用粗体嵌入字体显示项目符号列表。
我发现我可以得到带有项目符号的粗体字体,但不能嵌入。或者嵌入的字体带有非粗体的项目符号,或者嵌入的粗体字体没有项目符号。
这非常令人沮丧(也很烦人)。
我将字体嵌入到库中并通过 actionscript 导出它们。这是我的代码...
var tf:TextField = new TextField();
tf.multiline = true;
tf.width = 100;
tf.x = 200;
tf.y = 100;
tf.antiAliasType = AntiAliasType.ADVANCED;
tf.wordWrap = true;
tf.autoSize = TextFieldAutoSize.LEFT;
tf.embedFonts = true;
var bulletTF:TextFormat = new TextFormat();
var myFontBold:VerdBold = new VerdBold();
var myFont:Verd = new Verd();
bulletTF.font = myFont.fontName;
bulletTF.size = 12;
bulletTF.bullet = true;
tf.htmlText ="This is the first bullet, but this text should wrap correctly.<br>and another<br>And another still" ;
tf.setTextFormat(bulletTF);
addChild(tf);
上面的代码生成了常规字体嵌入项目符号列表。
如果我将 bulletTF.font 行更改为 bulletTF.font = myFontBold.fontName 字体变为粗体并且项目符号消失。
有人处理过这个吗?如果是这样...您的解决方案(或解决方法)是什么。
提前很多义务。
【问题讨论】: