Don't ever return a bitmap font if the driver can't use it.

This commit is contained in:
Huw Davies 2004-08-11 18:49:34 +00:00 committed by Alexandre Julliard
parent 17a8372302
commit 0e58986d4f
1 changed files with 12 additions and 3 deletions

View File

@ -1726,9 +1726,18 @@ GdiFont WineEngCreateFontInstance(DC *dc, HFONT hfont)
}
if(!family) {
family = FontList;
csi.fs.fsCsb[0] = 0;
FIXME("just using first face for now\n");
for(family = FontList; family; family = family->next) {
if(family->FirstFace->scalable || can_use_bitmap) {
csi.fs.fsCsb[0] = 0;
break;
FIXME("just using first face for now\n");
}
}
if(!family) {
FIXME("can't find a single appropriate font - bailing\n");
free_font(ret);
return NULL;
}
}
it = lf.lfItalic ? 1 : 0;