mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-21 11:42:56 +03:00
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:
parent
54feabe845
commit
3e71a538c3
14
amiga/gui.c
14
amiga/gui.c
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user