summaryrefslogtreecommitdiff
path: root/amiga/gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'amiga/gui.c')
-rwxr-xr-xamiga/gui.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/amiga/gui.c b/amiga/gui.c
index 47aee25e7..cf47ebc5e 100755
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -299,6 +299,7 @@ void ami_open_resources(void)
void ami_set_options(void)
{
STRPTR tempacceptlangs;
+ BPTR lock = 0;
/* The following line disables the popupmenu.class select menu
** This will become a user option when/if popupmenu.class is
@@ -364,6 +365,23 @@ void ami_set_options(void)
if((!option_font_fantasy) || (option_font_fantasy[0] == '\0'))
option_font_fantasy = (char *)strdup("DejaVu Serif");
+ if((!option_font_unicode) || (option_font_unicode[0] == '\0'))
+ {
+ /* Search for some likely candidates */
+
+ if(lock=Lock("FONTS:Code2000.font",ACCESS_READ))
+ {
+ UnLock(lock);
+ option_font_unicode = (char *)strdup("Code2000");
+ }
+ else if(lock=Lock("FONTS:Bitstream Cyberbit.font",ACCESS_READ))
+ {
+ UnLock(lock);
+ option_font_unicode = (char *)strdup("Bitstream Cyberbit");
+ }
+ else option_font_unicode = (char *)strdup("Deja Vu Sans");
+ }
+
if((!option_theme) || (option_theme[0] == '\0'))
option_theme = (char *)strdup("PROGDIR:Resources/Themes/Default");