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.
This commit is contained in:
Chris Young 2016-01-10 12:22:43 +00:00
parent 54feabe845
commit 3e71a538c3

View File

@ -624,18 +624,22 @@ static nserror ami_set_options(struct nsoption_s *defaults)
BPTR lock = 0; BPTR lock = 0;
/* Search for some likely candidates */ /* Search for some likely candidates */
if((lock = Lock("FONTS:Code2000.otag", ACCESS_READ))) if((lock = Lock("FONTS:Code2000.otag", ACCESS_READ))) {
{
UnLock(lock); UnLock(lock);
nsoption_set_charp(font_unicode, nsoption_set_charp(font_unicode,
(char *)strdup("Code2000")); (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); UnLock(lock);
nsoption_set_charp(font_unicode, nsoption_set_charp(font_unicode,
(char *)strdup("Bitstream Cyberbit")); (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) { if (nsoption_charp(font_surrogate) == NULL) {