0
我想中心“的横幅文本”,但不知道如何计算文本宽度Rebol Draw:如何在文本框中居中放置文本?
view layout [
box white 728x90 effect [
draw [
text 100x20 "Your Banner Text"
]
]
]
我想中心“的横幅文本”,但不知道如何计算文本宽度Rebol Draw:如何在文本框中居中放置文本?
view layout [
box white 728x90 effect [
draw [
text 100x20 "Your Banner Text"
]
]
]
这里是通过把文本直入禁区,而不是使用DRAW方言做这件事的方式:
view layout [
box white 728x90 font [align: 'center] "Your banner text"
]