[squeak-dev] Re: [Ann] Enhanced StrikeFonts (antiAliasing,
subPixel AA)
Andreas Raab
andreas.raab at gmx.de
Wed Aug 5 03:30:29 UTC 2009
Andreas Raab wrote:
>> Note #3. The second pass stuff is done in GrafPort, but not in BitBlt.
>> Do you think it is better to move it up to BitBlt?
>
> BitBlt, since it's used directly from StrikeFont and not via Canvas.
Or that's what he thought. It turns out this doesn't work since it
breaks WarpBlt (which relies on the exact layout of BitBlt). I suppose
*that* is the reason why GrafPort got invented to begin with (it always
felt strange to me since Morphic had both Canvas and BitBlt and should
be happy inbetween the two - but if adding state to BB isn't an option,
that would explain GrafPort).
In any case, I pushed the state vars back down to GrafPort (renaming
them in the process to avoid Monticello madness) and hopefully
everything is fine now. You'll have to use GrafPort to get two-pass
rendering but it won't break if you use BitBlt.
Cheers,
- Andreas
More information about the Squeak-dev
mailing list
|