开发者

underline line thickness always one pixel

...regardless of font size.

Its an mx:Text object. (The Text object is actually being used as a mask so don't know if that's the problem.) If underline is set with the <u> tag in Text.htmlText, or Text.textField开发者_开发百科.setTextFormat, the underline thickness is always just one pixel which is not acceptable. (There are other problems with <u> so I'm limited to using setTextFormat currently.)

Can the thickness of an underline be set through CSS? (textField.styleSheet, etc.)

I may have another problem as I already use setTextFormat extensively, and the documentation says you can't use textField.setTextFormat if you use textField.setStyleSheet.

I primarily need the underline to simulate correctly the look for an anchor tag.


its not even possible to do in html (you need to use border-bottom). i don't think this is possible.


Not possible with CSS or TextFormat. A possible workaround would be using the textfield metrics (probably through getCharBoundaries()) to manually draw a line under the desired text. It can get quite messy for multiline text though.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜