[squeak-dev] Q: Why do TTCFont Glyphs need an alpha channel?

Bert Freudenberg bert at freudenbergs.de
Fri Jul 25 15:29:38 UTC 2008


Am 25.07.2008 um 11:17 schrieb Jerome Peace:

> Q: Why do TTCFont Glyphs need an alpha channel? [squeak-dev] Q: Why  
> are TTCFont Glyphs forms of depth 32? Hi Bert, Thank you for your  
> quick answer. So the next question is: Q: Why do TTCFont Glyphs need  
> an alpha channel? Why wouldn't just having transparent pixels  
> suffice? When/where is this extra ability used? Can you point me to  
> a good case? Bert Freudenberg bert at freudenbergs.de Fri Jul 25  
> 04:22:53 UTC 2008 *** >Am 25.07.2008 um 00:16 schrieb Jerome Peace:  
> > >> Hi all, >><...> >> >> Q: Why are TTCFont Glyphs forms of depth  
> 32? >> > >A 32 bpp form is TSTTCPW if you want an alpha channel. An  
> 8 bpp form >would suffice, but require more exotic bitblt rules to  
> be interpreted >as an alpha channel. > >- Bert - > ***


You need alpha for the anti-aliased rendering. Look at a TT-rendered  
string with a magnifier morph, its edges are not made of only black  
pixels.

- Bert -





More information about the Squeak-dev mailing list