wineps.drv: Only fail printer dc creation if the printer has no builtin fonts and there are no TrueType fonts to download.
This commit is contained in:
parent
a725826ada
commit
dba0977092
|
@ -328,8 +328,14 @@ BOOL PSDRV_CreateDC( HDC hdc, PSDRV_PDEVICE **pdev, LPCWSTR driver, LPCWSTR devi
|
|||
if(!pi) return FALSE;
|
||||
|
||||
if(!pi->Fonts) {
|
||||
MESSAGE("To use WINEPS you need to install some AFM files.\n");
|
||||
return FALSE;
|
||||
RASTERIZER_STATUS status;
|
||||
if(!GetRasterizerCaps(&status, sizeof(status)) ||
|
||||
!(status.wFlags & TT_AVAILABLE) ||
|
||||
!(status.wFlags & TT_ENABLED)) {
|
||||
MESSAGE("Disabling printer %s since it has no builtin fonts and there are no TrueType fonts available.\n",
|
||||
debugstr_w(device));
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
physDev = HeapAlloc( PSDRV_Heap, HEAP_ZERO_MEMORY, sizeof(*physDev) );
|
||||
|
|
Loading…
Reference in New Issue