summaryrefslogtreecommitdiff
path: root/riscos/font.c
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2006-01-10 08:17:51 +0000
committerJames Bursa <james@netsurf-browser.org>2006-01-10 08:17:51 +0000
commit5d6c56582875873eca1da05a530e397c95c7ab33 (patch)
treed2e3d98b9203fd3a3a1e1097a665fbf227a466a3 /riscos/font.c
parent08ca6a9ae4f818f18f874fcdbf648ca1dae57a03 (diff)
downloadnetsurf-5d6c56582875873eca1da05a530e397c95c7ab33.tar.gz
netsurf-5d6c56582875873eca1da05a530e397c95c7ab33.tar.bz2
[project @ 2006-01-10 08:17:51 by bursa]
Search font list ignoring case (should fix 1330351). svn path=/import/netsurf/; revision=2020
Diffstat (limited to 'riscos/font.c')
-rw-r--r--riscos/font.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/riscos/font.c b/riscos/font.c
index 4bbfcc8b0..7eab7a03c 100644
--- a/riscos/font.c
+++ b/riscos/font.c
@@ -42,7 +42,7 @@ static void nsfont_init_menu(void);
void nsfont_init(void)
{
- const char *fallback = "Homerton";
+ const char *fallback;
rufl_code code;
nsfont_check_fonts();
@@ -63,8 +63,7 @@ void nsfont_init(void)
die("No fonts could be found. At least one font must be "
"installed.");
- if (!nsfont_exists("Homerton"))
- fallback = rufl_family_list[0];
+ fallback = nsfont_fallback_font();
nsfont_check_option(&option_font_sans, "Homerton", fallback);
nsfont_check_option(&option_font_serif, "Trinity", fallback);
@@ -144,7 +143,7 @@ int nsfont_list_cmp(const void *keyval, const void *datum)
{
const char *key = keyval;
const char * const *entry = datum;
- return strcmp(key, *entry);
+ return strcasecmp(key, *entry);
}