From 43ef338bd82bfe424141dadaa20b6e8ae056cbf7 Mon Sep 17 00:00:00 2001 From: Vincent Wei Date: Wed, 10 Apr 2019 10:13:41 +0800 Subject: [PATCH] debug: use FS_SLANT_ROMAN as the default --- src/font/freetype2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/font/freetype2.c b/src/font/freetype2.c index 5bee2f59..921dcc05 100644 --- a/src/font/freetype2.c +++ b/src/font/freetype2.c @@ -1099,6 +1099,8 @@ static void* load_font_data (DEVFONT* devfont, devfont->style |= FS_SLANT_OBLIQUE; else if (tt_os2->fsSelection & 0x01) // ITALIC devfont->style |= FS_SLANT_ITALIC; + else + devfont->style |= FS_SLANT_ROMAN; devfont->style &= ~FS_DECORATE_MASK; if (tt_os2->fsSelection & (0x01 << 1)) // UNDERSCORE