not all fonts have underline feature available. 
if you take a 4.0 image and do not change fonts, the default fonts (DejaVu 
Sans) can underline. 
the one I usually use, for example (Source Sans Pro), can not (at least in the 
installation I have).

Esteban

On 23 Jul 2014, at 19:47, Andreas Wacknitz <[email protected]> wrote:

> 
> Am 23.07.2014 um 18:33 schrieb Nicolai Hess <[email protected]>:
> 
>> Where did you test this?
>> 
>>   (TextMorph new contents: (Text string: 'hi there' attribute: (TextEmphasis
>> underlined))) openInHand.
>> 
>> Works for me.
>> 
>> (Pharo 40120 windows 7)
> Does not work on Pharo 40120 on Mac OSX 10.9.4 (newest Pharo-VM) for me.
> 
> 
> Regards,
> Andreas
> 
>> 
>> 
>> 
>> 2014-07-23 6:39 GMT+02:00 Tudor Girba <[email protected]>:
>> Strange indeed.
>> 
>> Rubric supports this well:
>> (RubEditingArea new updateTextWith: (Text string: 'hi there' attribute: 
>> TextEmphasis underlined)) openInWindow.
>> 
>> Cheers,
>> Doru
>> 
>> <rubric-underline.png>
>> 
>> 
>> On Wed, Jul 23, 2014 at 6:23 AM, Sean P. DeNigris <[email protected]> 
>> wrote:
>> I was surprised that the following does not show an underline:
>>   (TextMorph new contents: (Text string: 'hi there' attribute: (TextEmphasis
>> underlined))) openInHand.
>> ... especially since the first line in TM's class comment is "TextMorphs
>> support display of text with emphasis"
>> 
>> Any ideas?
>> 
>> p.s. the emphasis is there, it's just not being displayed. When I copy the
>> text to the clipboard and paste in the workspace via "Clipboard
>> clipboardText: (Text string: 'hi there' attribute: (TextEmphasis
>> underlined))", I see the underline for a split second before the syntax
>> highlighting happens.
>> 
>> 
>> 
>> -----
>> Cheers,
>> Sean
>> --
>> View this message in context: 
>> http://forum.world.st/TextMorph-No-Emphasis-tp4769458.html
>> Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
>> 
>> 
>> 
>> 
>> -- 
>> www.tudorgirba.com
>> 
>> "Every thing has its own flow"
>> 
> 

Reply via email to