Skip to content

Commit

Permalink
GUI: use FreeType by default
Browse files Browse the repository at this point in the history
  • Loading branch information
tildearrow committed Oct 16, 2023
1 parent 7584982 commit 7dfb7e9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gui/gui.h
Original file line number Diff line number Diff line change
Expand Up @@ -1792,7 +1792,7 @@ class FurnaceGUI {
showPool(0),
writeInsNames(1),
readInsNames(1),
fontBackend(0),
fontBackend(1),
fontHinting(0),
fontBitmap(0),
fontAutoHint(1),
Expand Down
8 changes: 7 additions & 1 deletion src/gui/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 7dfb7e9

Please sign in to comment.