MGL_setFontBlendMode

Sets the blending mode for anti-aliased fonts.

Declaration

void MGLAPI MGL_setFontBlendMode(
int type)

Prototype In

mgraph.h

Parameters

type | Type of Blending mode, enumerated by MGL_fontBlendType.

Description

Sets the blending mode for anti-aliased fonts. The default blending mode of MGL_AA_NORMAL does not combine source and destination pixels, but chooses the colors from the anti-aliasing palette in 256 color modes, or from value blended between the current foreground and background colors.

If the font blending mode is set to MGL_AA_RGBBLEND, then all anti-aliased pixels in the font are blended both between the current foreground and background colors, and the destination pixels on the screen.

Using MGL_AA_NORMAL provides the fastest font anti-aliasing support, but it only works properly if you are drawing text over a solid background (such as text in a word processor type application). Using MGL_AA_RGBBLEND provides the highest quality anti-aliasing, and will correctly blend fonts over the top of existing images in the framebuffer.

Note: MGL_AA_RGBBLEND is only available in modes with > 8 bits per pixel. Blending cannot be done in 8 bits per pixel display modes.

See Also

MGL_getFontBlendMode, MGL_setFontAntiAliasPalette

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com