From 0d170a6f74109d4e553424e9a344a2c86aa28f6d Mon Sep 17 00:00:00 2001 From: Vincent Wei Date: Thu, 3 Nov 2022 20:49:50 +0800 Subject: [PATCH] use CreateLogFontEx instead of CreateLogFont to follow the new style convention of font name when creating system logfonts, but the orientation is ignored for the system logfont. --- src/font/sysfont.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/font/sysfont.c b/src/font/sysfont.c index 9cd742d1..508543be 100644 --- a/src/font/sysfont.c +++ b/src/font/sysfont.c @@ -155,7 +155,10 @@ BOOL mg_InitSysFont (void) goto error_load; } - if ((sys_fonts[i] = CreateLogFont (type, family, charset, + /* VW 20221003: use CreateLogFontEx instead of CreateLogFont to + follow the new style convention of font name, + but the orientation is ignored for the system logfont. */ + if ((sys_fonts[i] = CreateLogFontEx (type, family, charset, style [0], style [1], style [2], style [3], style [4], style [5], height, 0)) == NULL) {