antialiasing for rotated text/string morphs

Hal Eden haleden at l3d.cs.colorado.edu
Tue Jun 21 05:12:56 UTC 2005


greetings,

i have run across an issue with TextMorphs and StringMorphs when they  
are using a font that performs antialiasing (e.g., ComicSansMS). When  
rotated, they are no longer antialiased.

although i have been doing this programmatically, it can be  
reproduced using a TextMorph from the supplies flap and then rotating  
it using the halos.

as a workaround, i have found that a embedding the TextMorph into  
another morph (e.g., RectangleMorph) alleviates the problem.

i did a little snooping around, but couldn't really make much  
progress on understanding why this happens (although i suspect it may  
be related to the TransformationMorph that gets inserted into the  
hierarchy above the morph when it is rotated).

is there a better approach to this?

(i'm working in 3.7/3.8)

thanks,

hal

hal eden
university of colorado
center for lifelong learning & design




More information about the Squeak-dev mailing list