[英]as3 text formatting, Underline spacing?
So if I want to imitate a link in as3, when I set 因此,如果我想模仿as3中的链接,
myFormat.underline = true;
the underline is directly underneath my text. 下划线直接位于我的文字下方。 Is there any way I can set the spacing of that underland?
有什么办法可以设置地下的距离吗? Thanks.
谢谢。
You can draw a line instead of using the underline. 您可以画一条线而不是使用下划线。 Then space it how ever you want.
然后根据需要将其间隔开。 Just make it the same color as the text.
只需使其与文本颜色相同即可。
Something like this in AS 3: 在AS 3中类似这样:
myItem.graphics.lineStyle(1);
myItem.graphics.moveTo(0,0); ///This is where we start drawing
myItem.graphics.lineTo(350, 600);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.