From dba09770921e6f4583a4b79226ed4f38d5520126 Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Tue, 28 Aug 2007 11:46:18 +0100 Subject: [PATCH] wineps.drv: Only fail printer dc creation if the printer has no builtin fonts and there are no TrueType fonts to download. --- dlls/wineps.drv/init.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/dlls/wineps.drv/init.c b/dlls/wineps.drv/init.c index a794becbd52..d499247ea7e 100644 --- a/dlls/wineps.drv/init.c +++ b/dlls/wineps.drv/init.c @@ -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) );