From 7dfb7e916c1ae316f5c77e40f467945497faac77 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Mon, 16 Oct 2023 16:23:54 -0500 Subject: [PATCH] GUI: use FreeType by default --- src/gui/gui.h | 2 +- src/gui/settings.cpp | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/gui/gui.h b/src/gui/gui.h index 7335f687ee..5fe608285f 100644 --- a/src/gui/gui.h +++ b/src/gui/gui.h @@ -1792,7 +1792,7 @@ class FurnaceGUI { showPool(0), writeInsNames(1), readInsNames(1), - fontBackend(0), + fontBackend(1), fontHinting(0), fontBitmap(0), fontAutoHint(1), diff --git a/src/gui/settings.cpp b/src/gui/settings.cpp index dfc19462c9..4e821258b0 100644 --- a/src/gui/settings.cpp +++ b/src/gui/settings.cpp @@ -43,6 +43,12 @@ #define POWER_SAVE_DEFAULT 0 #endif +#ifdef HAVE_FREETYPE +#define FONT_BACKEND_DEFAULT 1 +#else +#define FONT_BACKEND_DEFAULT 0 +#endif + #if defined(__HAIKU__) || defined(IS_MOBILE) || (defined(_WIN32) && !defined(_WIN64)) // NFD doesn't support Haiku // NFD doesn't support Windows XP either @@ -3717,7 +3723,7 @@ void FurnaceGUI::syncSettings() { settings.writeInsNames=e->getConfInt("writeInsNames",1); settings.readInsNames=e->getConfInt("readInsNames",1); settings.defaultAuthorName=e->getConfString("defaultAuthorName",""); - settings.fontBackend=e->getConfInt("fontBackend",0); + settings.fontBackend=e->getConfInt("fontBackend",FONT_BACKEND_DEFAULT); settings.fontHinting=e->getConfInt("fontHinting",0); settings.fontBitmap=e->getConfInt("fontBitmap",0); settings.fontAutoHint=e->getConfInt("fontAutoHint",1);