From 24383897caf9b56d082a13907bed5e70d5b26d52 Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Sat, 9 Feb 2002 01:27:07 +0000 Subject: [PATCH] (w32_load_system_font): Prevent Cleartype fonts from loading. --- src/ChangeLog | 1 + src/w32fns.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 88732ba5e22..3451d2c6a63 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -2,6 +2,7 @@ * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows match each other. + (w32_load_system_font): Prevent Cleartype fonts from loading. 2002-02-08 Eli Zaretskii diff --git a/src/w32fns.c b/src/w32fns.c index 318a3afce81..ea5bd5be138 100644 --- a/src/w32fns.c +++ b/src/w32fns.c @@ -5618,6 +5618,10 @@ w32_load_system_font (f,fontname,size) ended up with. */ return NULL; + /* Specify anti-aliasing to prevent Cleartype fonts being used, + since those fonts leave garbage behind. */ + lf.lfQuality = ANTIALIASED_QUALITY; + font = (XFontStruct *) xmalloc (sizeof (XFontStruct)); bzero (font, sizeof (*font)); -- 2.39.2