Hi Damien,

It is a problem with all VMs, not only the Exupery one.

 

I have packaged up a fix for this. 

Please see my comment in tracker issue 360 
http://code.google.com/p/pharo/issues/detail?id=360 , copied below...

---





Fixed in
http://www.squeaksource.com/PharoInbox/SLICE-underlineInLazyListsWithFreeTypeFonts-andrew_tween.2.mcz

LogicalFonts do not have underlined, or strikethrough, variants. Instead it is 
left
to whatever is asking the font to render text to also ask the font to display 
the
underline. 

For TextMorphs this was already working properly, with DisplayScanner rendering
underlines and strikethrough. But, LazyListMorphs don't use DisplayScanner. 
They call
Canvas drawString... instead. 

I have created new drawString methods that allow the underline/strikethrough to 
be
specified with boolean parameters. These drawString methods then ask the font to
render the underline/strikethrough after rendering the string. In addition, the
colour of the line can be specified which will allow it to be different from the
colour of the text - e.g. text in black underlined in red.
--This is the first time I've made a SLICE, so apologies if I have made any 
mistakes.I'll sign and mail the license agreement a.s.a.p.

Cheers,

Andy


.


 
> Date: Sun, 8 Mar 2009 11:08:30 +0100
> From: [email protected]
> To: [email protected]
> Subject: [Pharo-project] FreeType font problem
> 
> Hi,
> 
> I'm playing with the Exupery VM on Pharo. If I change the font to
> something else than Accuny, the underlined texts are not underlined
> anymore. To reproduce:
> 
> - download and use http://ftp.squeak.org/Exupery/vms/exupery-vm-0.15-linux.tz
> - go to preferences->fonts->list fonts
> - select Bistream Charter/regular/10, and apply
> - open monticello and open the Pharo repository
> 
> You will see that the installed packages are not underlined anymore.
> Switch back to Accuny to see them underlined.
> 
> Does any of you have the same problem?
> 
> -- 
> Damien Cassou
> http://damiencassou.seasidehosting.st
> 
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

_________________________________________________________________
View your Twitter and Flickr updates from one place – Learn more!
http://clk.atdmt.com/UKM/go/137984870/direct/01/
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to