AS3动态文本粗体格式
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了AS3动态文本粗体格式相关的知识,希望对你有一定的参考价值。
A dynamic text field doesn't like to be set to bold (or italic, whatever). You can get around this issue by creating a text format in actionscript and setting that field's format to this newly-created one. This is only good for having a text field where all words in it share the same format (i.e. all words are bold).
var boldText:TextFormat = new TextFormat(); with (boldText) { //font = "Verdana"; //size = 9.8; //color = 0x000000; bold = true; } my_textfield_txt.setTextFormat(boldText);
以上是关于AS3动态文本粗体格式的主要内容,如果未能解决你的问题,请参考以下文章
SQLite 片段函数实现不会在 TextView 中将文本格式化为 HTML