【发布时间】:2019-08-10 22:43:24
【问题描述】:
我能够以多种方式修改 Squeak 中 Text 的外观,但我仍然找不到一种简单的方法来明确更改字体大小(作为数字)。你知道怎么做吗?
这是我的sn-p:
text1 := Text string: 'Hello ' attribute: (TextColor color: Color red).
text2 := Text string: 'World!' attribute:TextEmphasis normal.
text2 addAttribute: (TextColor color: Color magenta).
text2 addAttribute: (TextFontChange font2).
text2 addAttribute: (TextEmphasis underlined).
text := text1, ' ', text2.
(text asMorph) openInWorld .
【问题讨论】:
标签: text fonts size smalltalk squeak