Home |
Obtaining a Pointer to PegPresentationManager Determining the Position of an Object Overriding the Message() Method Anti-Aliased Fonts |
Anti-Aliased FontsAnti-aliased PegFonts are also bitmapped fonts, but they are encoded using a 4-bpp format to allow each pixel to be defined as "fully on", "fully off", or a value in between. The 4-bpp format provides 16 shading levels, which is usually sufficient to provide a good appearance. Anti-aliased fonts are used and assigned to RTPEG-32 object just like normal 1-bpp fonts. The only difference is in the internal format. The anti-aliased font format is recognized by screen drivers, and the anti-aliased font is drawn appropriately. Anti-aliased fonts are only supported when the target is running at 256 colors or higher. For 256 colors, only black-on-white or white-on-black color combinations are supported. The PEG default palette reserves 16 grayscale color values at the end of the palette for displaying anti-aliased fonts. For 64k colors and higher, any combination of foreground/background colors can be used to display anti-aliased fonts.
|