From a28b0fbe07ccdfc691b7aeaa127425a2ab4a5eb2 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 2 Jan 2006 21:24:43 +0000 Subject: [project @ 2006-01-02 21:24:42 by jmb] Finish font configuration. svn path=/import/netsurf/; revision=1953 --- riscos/font.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'riscos/font.c') diff --git a/riscos/font.c b/riscos/font.c index e0f8b03e6..4bbfcc8b0 100644 --- a/riscos/font.c +++ b/riscos/font.c @@ -29,7 +29,6 @@ wimp_menu *font_menu; static void nsfont_check_option(char **option, const char *family, const char *fallback); -static bool nsfont_exists(const char *font_family); static int nsfont_list_cmp(const void *keyval, const void *datum); static void nsfont_check_fonts(void); static void nsfont_init_menu(void); @@ -84,6 +83,21 @@ void nsfont_init(void) } +/** + * Retrieve the fallback font name + * + * \return Fallback font name + */ +const char *nsfont_fallback_font(void) +{ + const char *fallback = "Homerton"; + + if (!nsfont_exists(fallback)) + fallback = rufl_family_list[0]; + + return fallback; +} + /** * Check that a font option is valid, and fix it if not. * -- cgit v1.2.3