change logfont quality to FreeType mode conversion. Patch by tinus.

svn path=/trunk/; revision=13866
This commit is contained in:
Thomas Bluemel 2005-03-07 01:40:01 +00:00
parent eaf0e227f2
commit 15539c1521

View file

@ -427,18 +427,14 @@ IntGetFontRenderMode(LOGFONTW *logfont)
{ {
switch(logfont->lfQuality) switch(logfont->lfQuality)
{ {
//case ANTIALIASED_QUALITY: case NONANTIALIASED_QUALITY:
case DEFAULT_QUALITY: return FT_RENDER_MODE_MONO;
return FT_RENDER_MODE_NORMAL;
case DRAFT_QUALITY: case DRAFT_QUALITY:
return FT_RENDER_MODE_LIGHT; return FT_RENDER_MODE_LIGHT;
//case NONANTIALIASED_QUALITY: /* case CLEARTYPE_QUALITY:
case PROOF_QUALITY: return FT_RENDER_MODE_LCD; */
return FT_RENDER_MODE_MONO;
//case CLEARTYPE_QUALITY:
// return FT_RENDER_MODE_LCD;
} }
return FT_RENDER_MODE_MONO; return FT_RENDER_MODE_NORMAL;
} }
int int