wineps.drv: Don't try to download a non-scalable font.
This commit is contained in:
parent
c8898f6bba
commit
2844f383f1
|
@ -131,6 +131,7 @@ BOOL PSDRV_SelectDownloadFont(PSDRV_PDEVICE *physDev)
|
||||||
LPOUTLINETEXTMETRICA potm;
|
LPOUTLINETEXTMETRICA potm;
|
||||||
DWORD len = GetOutlineTextMetricsA(physDev->hdc, 0, NULL);
|
DWORD len = GetOutlineTextMetricsA(physDev->hdc, 0, NULL);
|
||||||
|
|
||||||
|
if(!len) return FALSE;
|
||||||
potm = HeapAlloc(GetProcessHeap(), 0, len);
|
potm = HeapAlloc(GetProcessHeap(), 0, len);
|
||||||
GetOutlineTextMetricsA(physDev->hdc, len, potm);
|
GetOutlineTextMetricsA(physDev->hdc, len, potm);
|
||||||
get_download_name(physDev, potm, &ps_name);
|
get_download_name(physDev, potm, &ps_name);
|
||||||
|
|
Loading…
Reference in New Issue