Commit 2844f383 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

wineps.drv: Don't try to download a non-scalable font.

parent c8898f6b
......@@ -131,6 +131,7 @@ BOOL PSDRV_SelectDownloadFont(PSDRV_PDEVICE *physDev)
LPOUTLINETEXTMETRICA potm;
DWORD len = GetOutlineTextMetricsA(physDev->hdc, 0, NULL);
if(!len) return FALSE;
potm = HeapAlloc(GetProcessHeap(), 0, len);
GetOutlineTextMetricsA(physDev->hdc, len, potm);
get_download_name(physDev, potm, &ps_name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment