[squeak-dev] Displaying text with translucent color

Marcel Taeumel marcel.taeumel at student.hpi.uni-potsdam.de
Wed Jun 16 16:44:42 UTC 2010


I found and (maybe) fixed a bug with font rendering in the latest Squeak 4.2
Alpha (#10224) trunk version.

It is not possible to render a font with a translucent color no matter if it
is a bitmap font or not.

BitBlt does an optimization when installing a StrikeFont:

installStrikeFont: aStrikeFont foregroundColor: foregroundColor
backgroundColor: backgroundColor
self combinationRule: 37. "RBGMul"

This trick prevents translucent colors from being used in glyphs. It would
work in the following way:

foregroundColor isTranslucent
   ifFalse: [self combinationRule: Form rgbMul].

Best regards,
Marcel Taeumel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BitBlt-installStrikeFontforegroundColorbackgroundColor.st
Type: application/octet-stream
Size: 2500 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20100616/ad6e284e/BitBlt-installStrikeFontforegroundColorbackgroundColor.obj

More information about the Squeak-dev mailing list