Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Some questions: - Did this ever work ?"we only handle bold and italic here since underline/strikeout are drawn separately" No "underline" or "stroke out" emphasis on FT fonts) nicolai |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
2015-05-04 22:51 GMT+02:00 Nicolai Hess <[hidden email]>:
... [show rest of quote] I think this worked in pharo 1 and pharo 2. Now I have to find out why it does not work anymore.
|
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
|
Off the top of my head, I remember having a problem when the font I requested didn't exist. I would get a fallback font without any of the emphases I requested. HTH.
Cheers,
Sean |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Thanks for the feedback, Sean. Nicolai Am 15.05.2015 5:21 nachm. schrieb "Sean P. DeNigris" <[hidden email]>:
Nicolai Hess wrote ... [show rest of quote] |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
2015-05-15 18:10 GMT+02:00 Nicolai Hess <[hidden email]>:
Athens TextMorph drawing does not support this yet. And I think there is now support for this in TxText. Anyone knows how about Rubric? I saw some examples with texdecorations, but I don't see how they are used from within an editor.
... [show rest of quote] |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Hello Nicolai,
I’ve pushed your fixe into Rubric. It works as expected. thanks a lot!. Cheers Alain -------------------- | font1 font2 tMorph | font1 := TextFontReference toFont: (StrikeFont familyName: 'Bitmap DejaVu Sans' size: 11). font2 := TextFontReference toFont: (LogicalFont familyName: 'Source Sans Pro' pointSize: 10). {font1. font2} do: [ :f | | t1 t2 t3 t4 t5 t6 | tMorph := RubEditingArea new. t1 := 'normal\' withCRs asText addAttribute: f. t2 := 'bold\' withCRs asText addAttribute: f; addAttribute: TextEmphasis bold. t3 := 'underline\' withCRs asText addAttribute: f; addAttribute: TextEmphasis underlined. t4 := 'struck out\' withCRs asText addAttribute: f; addAttribute: TextEmphasis struckOut. t5 := 'italic\' withCRs asText addAttribute: f; addAttribute: TextEmphasis italic. t6 := 'narrow\' withCRs asText addAttribute: f; addAttribute: TextEmphasis narrow. tMorph updateTextWith: t1 , t2 , t3 , t4 , t5 , t6. tMorph openInWorld ] ------------ ![]()
... [show rest of quote] |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
In reply to this post by Nicolai Hess
2015-05-16 0:43 GMT+02:00 Alain Plantec <[hidden email]>:
Where ? What ? I did not fix rubric. :) My fix was for the BitBltDisplayScanner. Or do you mean this example. It is interesting, does it mean rubric was always able to render underline and strokeouts?
... [show rest of quote] |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
ah, :))
I guess I’ve tried your fix locally by changing RubCharacterScanner>>displayString: from: to: at: but without checking your test before the change. it was working so my conclusion was that your fix was successful. But in fact, your are right, Rubric renders underline and strokeouts as expected without changing RubCharacterScanner>>displayString: from: to: at: Alain
... [show rest of quote] |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
In reply to this post by Nicolai Hess
2015-05-15 18:10 GMT+02:00 Nicolai Hess <[hidden email]>:
OK this is fixed now for Text and TextMorphs, but it still does not work for String/LabelMorphs. Anyone knows why we can set only bold and/or italic emphasis on a LogicalFont? StringMorph new contents:'hello';emphasis:1;openInHand. -> bold text StringMorph new contents:'hello';emphasis:8;openInHand. -> no change, it should be underlined This is different if the default font is a StrikeFont StringMorph new contents:'hello';emphasis:1;openInHand. -> bold text. StringMorph new contents:'hello';emphasis:8;openInHand. -> underlined. I found the place in LogicalFont, where other emphasis' are filtered out, but I don't understand why. nicolai
... [show rest of quote] |
Free forum by Nabble | Edit this page |