Don't ever return a bitmap font if the driver can't use it.
This commit is contained in:
parent
17a8372302
commit
0e58986d4f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue