When switching to outline fonts on OS3 reset the fonts

TODO: make this change in the GUI when toggling
This commit is contained in:
Chris Young 2017-02-25 00:16:49 +00:00
parent f162ddc711
commit 7a42134bee

View File

@ -1898,6 +1898,15 @@ static void ami_gui_opts_use(bool save)
#ifndef __amigaos4__
GetAttr(GA_Selected, gow->objects[GID_OPTS_FONT_BITMAP], (ULONG *)&data);
ami_font_fini();
if((nsoption_bool(bitmap_fonts) == true) && (data == false)) {
nsoption_set_charp(font_sans, (char *)strdup("CGTriumvirate"));
nsoption_set_charp(font_serif, (char *)strdup("CGTimes"));
nsoption_set_charp(font_mono, (char *)strdup("LetterGothic"));
nsoption_set_charp(font_cursive, (char *)strdup("CGTriumvirate"));
nsoption_set_charp(font_fantasy, (char *)strdup("CGTimes"));
}
if(data) {
nsoption_set_bool(bitmap_fonts, true);
} else {