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.
Strange indeed. Rubric supports this well: (RubEditingArea new updateTextWith: (Text string: 'hi there' attribute: TextEmphasis underlined)) openInWindow. Cheers, Doru [image: Inline image 1] On Wed, Jul 23, 2014 at 6:23 AM, Sean P. DeNigris <sean@clipperadams.com> 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"
Where did you test this? (TextMorph new contents: (Text string: 'hi there' attribute: (TextEmphasis underlined))) openInHand. Works for me. (Pharo 40120 windows 7) 2014-07-23 6:39 GMT+02:00 Tudor Girba <tudor@tudorgirba.com>:
Strange indeed.
Rubric supports this well: (RubEditingArea new updateTextWith: (Text string: 'hi there' attribute: TextEmphasis underlined)) openInWindow.
Cheers, Doru
[image: Inline image 1]
On Wed, Jul 23, 2014 at 6:23 AM, Sean P. DeNigris <sean@clipperadams.com> 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"
I tested it in Pharo 3.0 30852 (Mac). Doru On Wed, Jul 23, 2014 at 6:33 PM, Nicolai Hess <nicolaihess@web.de> wrote:
Where did you test this?
(TextMorph new contents: (Text string: 'hi there' attribute: (TextEmphasis underlined))) openInHand.
Works for me.
(Pharo 40120 windows 7)
2014-07-23 6:39 GMT+02:00 Tudor Girba <tudor@tudorgirba.com>:
Strange indeed.
Rubric supports this well: (RubEditingArea new updateTextWith: (Text string: 'hi there' attribute: TextEmphasis underlined)) openInWindow.
Cheers, Doru
[image: Inline image 1]
On Wed, Jul 23, 2014 at 6:23 AM, Sean P. DeNigris <sean@clipperadams.com> 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"
-- www.tudorgirba.com "Every thing has its own flow"
Am 23.07.2014 um 18:33 schrieb Nicolai Hess <nicolaihess@web.de>:
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 <tudor@tudorgirba.com>: 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 <sean@clipperadams.com> 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"
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 <a.wacknitz@gmx.de> wrote:
Am 23.07.2014 um 18:33 schrieb Nicolai Hess <nicolaihess@web.de>:
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 <tudor@tudorgirba.com>: 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 <sean@clipperadams.com> 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"
Esteban, You are right. Changing the font solves the âproblemâ. And the code snipped reveals another problem in Pharo 40120: a right click in the resulting TextMorph gives a MNU TextMorph>>editView :( Regards, Andreas Am 23.07.2014 um 19:58 schrieb Esteban Lorenzano <estebanlm@gmail.com>:
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 <a.wacknitz@gmx.de> wrote:
Am 23.07.2014 um 18:33 schrieb Nicolai Hess <nicolaihess@web.de>:
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 <tudor@tudorgirba.com>: 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 <sean@clipperadams.com> 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"
EstebanLM wrote
not all fonts have underline feature available.
Ah, yes, changing the font shows the underline. This seems wierd. Maybe a silly question, but why can e.g. Mac Pages show Arial underlined, but not in Pharo? Is underlining something we implement separately for each font? ----- Cheers, Sean -- View this message in context: http://forum.world.st/TextMorph-No-Emphasis-tp4769458p4769710.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
On 24 Jul 2014, at 03:47, Sean P. DeNigris <sean@clipperadams.com> wrote:
EstebanLM wrote
not all fonts have underline feature available.
Ah, yes, changing the font shows the underline. This seems wierd. Maybe a silly question, but why can e.g. Mac Pages show Arial underlined, but not in Pharo? Is underlining something we implement separately for each font?
probably a FT2 issue? it can be some kind of a bug, after all⦠Esteban
----- Cheers, Sean -- View this message in context: http://forum.world.st/TextMorph-No-Emphasis-tp4769458p4769710.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
participants (5)
-
Andreas Wacknitz -
Esteban Lorenzano -
Nicolai Hess -
Sean P. DeNigris -
Tudor Girba