From ce84448c05bb61135f0cebd1a812f3e4496f62bd Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Tue, 23 May 2017 10:45:34 +0000 Subject: Fix test-case font-44.1: It looks like XftPatternAddDouble(... XFT_PIXEL_SIZE ..) doesn't take scaling into account, so we have to do our own scaling. --- unix/tkUnixRFont.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unix/tkUnixRFont.c b/unix/tkUnixRFont.c index a08b95f..cce59a8 100644 --- a/unix/tkUnixRFont.c +++ b/unix/tkUnixRFont.c @@ -447,7 +447,7 @@ TkpGetFontFromAttributes( if (faPtr->size > 0.0) { XftPatternAddDouble(pattern, XFT_SIZE, faPtr->size); } else if (faPtr->size < 0.0) { - XftPatternAddDouble(pattern, XFT_PIXEL_SIZE, -faPtr->size); + XftPatternAddDouble(pattern, XFT_SIZE, TkFontGetPoints(tkwin, faPtr->size)); } else { XftPatternAddDouble(pattern, XFT_SIZE, 12.0); } -- cgit v0.12