--- Begin Message ---
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 ]

------------




> 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 
> <mailto: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 
> <mailto: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
>  
> <http://forum.world.st/FreeType-fonts-and-underline-strikethrough-emphasis-tp4824414p4826525.html>
> Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
> 
> 


--- End Message ---

Reply via email to