2015-05-16 0:43 GMT+02:00 Alain Plantec <alain.plan...@yahoo.com>: > Hello Nicolai, > > I’ve pushed your fixe into Rubric. > It works as expected. > thanks a lot!. > > 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? > 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 ] > > ------------ > > > > On 15 May 2015, at 22:33, Nicolai Hess <nicolaih...@web.de> wrote: > > > > 2015-05-15 18:10 GMT+02:00 Nicolai Hess <nicolaih...@web.de>: > >> Thanks for the feedback, Sean. >> Meanwhile, I think I found the reason. I think it got lost during the >> merge of Display- and MultiDisplayScanner. I upload a fix, ready for review. >> > > 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. > > > > > > >> Nicolai >> Am 15.05.2015 5:21 nachm. schrieb "Sean P. DeNigris" < >> s...@clipperadams.com>: >> >>> Nicolai Hess wrote >>> > I think this worked in pharo 1 and pharo 2. Now I have to find out why >>> it >>> > does not work anymore. >>> >>> 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 >>> -- >>> View this message in context: >>> http://forum.world.st/FreeType-fonts-and-underline-strikethrough-emphasis-tp4824414p4826525.html >>> Sent from the Pharo Smalltalk Developers mailing list archive at >>> Nabble.com. >>> >>> > >