Bitmap fonts with antialiasing

Hi,

I use the function:

int CreateFontBitmaps(HDC hdc, char* fontname, int height, int weight, DWORD italic)
{
int base;
HFONT font;

if ((base = glGenLists(256)) == 0) return 0;

font = CreateFont(height, 0, 0, 0, weight, italic, false, false,
ANSI_CHARSET, OUT_TT_PRECIS, CLIP_DEFAULT_PRECIS, ANTIALIASED_QUALITY,
FF_DONTCARE| |DEFAULT_PITCH, fontname);

SelectObject(hdc, font);
wglUseFontBitmaps(hdc, 32, 256, base);

return base;
}

to create a bitmap font, but it doesn’t seem to be antialiased. Why? I set ANTIALIASED_QUALITY.

thanks in advance

wglUseFontBitmaps will always give you bitmap quality fonts regardless of the requests you make for font creation or any gl parameters or states you change. If you want true type or antialiased fonts, use wglUseFontOutlines, though the characters require more memory to store. But, also, they can be manipulated with the glTranslate, glRotate, glScale, etc, whereas you use glRasterPos with the bitmap fonts.

thanks