[squeak-dev] Class Text : category 'emphasis' - method #allBold BUT NO #allItalics?
H. Hirzel
hannes.hirzel at gmail.com
Fri Jul 6 08:30:04 UTC 2018
Hello
there is a method #allBold in class Text
allBold
"Force this whole text to be bold."
string size = 0 ifTrue: [^self].
self makeBoldFrom: 1 to: string size
but no method allItalics
That would be something like
allItalics
string size = 0 ifTrue: [^self].
self addAttribute: TextEmphasis italic from: 1 to: string size.
Should this be added?
Regards
Hannes
More information about the Squeak-dev
mailing list
|