2015-05-15 18:10 GMT+02:00 Nicolai Hess <[email protected]>: > 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. >
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 > Nicolai > Am 15.05.2015 5:21 nachm. schrieb "Sean P. DeNigris" < > [email protected]>: > >> 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. >> >>
