From 3e71a538c343b3341a435ece56f46b39f1bb3b74 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 10 Jan 2016 12:22:43 +0000 Subject: [PATCH] Set a unicode fallback to LetterGothic on OS3 This should ensure we get text on screen even if use_diskfont is disabled and a bitmap font is set. --- amiga/gui.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/amiga/gui.c b/amiga/gui.c index eefc2c6a6..8e9fadae0 100644 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -624,18 +624,22 @@ static nserror ami_set_options(struct nsoption_s *defaults) BPTR lock = 0; /* Search for some likely candidates */ - if((lock = Lock("FONTS:Code2000.otag", ACCESS_READ))) - { + if((lock = Lock("FONTS:Code2000.otag", ACCESS_READ))) { UnLock(lock); nsoption_set_charp(font_unicode, (char *)strdup("Code2000")); - } - else if((lock = Lock("FONTS:Bitstream Cyberbit.otag", ACCESS_READ))) - { + } else if((lock = Lock("FONTS:Bitstream Cyberbit.otag", ACCESS_READ))) { UnLock(lock); nsoption_set_charp(font_unicode, (char *)strdup("Bitstream Cyberbit")); } +#ifndef __amigaos4__ + else if((lock = Lock("FONTS:LetterGothic.otag", ACCESS_READ))) { + UnLock(lock); + nsoption_set_charp(font_unicode, + (char *)strdup("LetterGothic")); + } +#endif } if (nsoption_charp(font_surrogate) == NULL) {