'From Squeak6.0alpha of 3 September 2020 [latest update: #19835] on 8 September 2020 at 8:08:21 am'!

!Text methodsFor: '*60Deprecated-emphasis' stamp: 'ct 9/8/2020 08:02'!
allBold

	self deprecated: 'ct: Use #beAllBold to modify the receiver or copy it to style a second instance.'.
	^ self beAllBold! !

!Text methodsFor: 'emphasis' stamp: 'ct 9/8/2020 08:05'!
applyFont: aFont from: start to: stop

	^ self
		addAttribute: (TextFontReference toFont: aFont)
		from: start
		to: stop! !

!Text methodsFor: 'emphasis' stamp: 'ct 9/8/2020 08:04'!
beAllBold
	"Force the entire receiver to be bold."

	self ifEmpty: [^ self].
	^ self makeBoldFrom: 1 to: self size! !

!Text methodsFor: 'emphasis' stamp: 'ct 9/8/2020 08:05'!
beAllFont: aFont
	"Force the entire receiver to be styled in aFont."

	^ self applyFont: aFont from: 1 to: self size! !

!Text methodsFor: 'emphasis' stamp: 'ct 9/8/2020 08:04'!
beAllItalic
	"Force the entire reicever to be italic."

	self ifEmpty: [^ self].
	^ self makeItalicFrom: 1 to: self size! !

!Text methodsFor: 'emphasis' stamp: 'ct 9/8/2020 08:04'!
makeItalicFrom: start to: stop

	^ self addAttribute: TextEmphasis italic from: start to: stop! !

