On Mar 26, 2010, at 11:37 27AM, Lukas Renggli wrote: >> If the text background color is consistent, it should be fakeble in image. >> Otherwise I'd reckon it requires more BitBlt fixes. > > Ok, converting the string morph to a bitmap works indeed. The text is > readable. However the transparency does not work. > > I hope the VM gets fixed :-) > >> Look at the text in a rotated browser first, that's the result you can >> expect. >> Basic way would be to instead of rendering the text glyphs rotated, render >> the glyphs on top of a bitmap of the proper rotated background, then rotate >> that opaque bitmap instead. >> Not a perfect solution by any means, but it can be done if you're desperate >> enough... waiting for VM fixes can take a looooong time :( > > Are there any examples for that? > > Lukas
CornerRounder works this way. These are the basic steps (performed in method roundCornersOf: on: in: displayBlock: borderWidth: corners: ) 1. copy bits below to a bitmap. 2. render normal corner to bitmap 2. 3. mask out the rounded bits in bitmap 2. 4. render bitmap2 on top of bitmap1. 5. display the composite on screen. You'd probably skip 2 and 3 for text, replace 4 with "render text", and add: 2. rotate bits -X degrees 4.5 rotate bits X degrees. Cheers, Henry _______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
