From adeea58dff42ade865603551fedc2b115b631d0d Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 2 Jan 2006 23:00:18 +0000 Subject: [project @ 2006-01-02 23:00:18 by jmb] Take account of default font family svn path=/import/netsurf/; revision=1966 --- riscos/font.c | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'riscos/font.c') diff --git a/riscos/font.c b/riscos/font.c index 4bbfcc8b0..622f713c2 100644 --- a/riscos/font.c +++ b/riscos/font.c @@ -452,7 +452,26 @@ void nsfont_read_style(const struct css_style *style, *font_family = option_font_fantasy; break; default: - *font_family = option_font_sans; + switch (option_font_default) { + case CSS_FONT_FAMILY_SANS_SERIF: + *font_family = option_font_sans; + break; + case CSS_FONT_FAMILY_SERIF: + *font_family = option_font_serif; + break; + case CSS_FONT_FAMILY_MONOSPACE: + *font_family = option_font_mono; + break; + case CSS_FONT_FAMILY_CURSIVE: + *font_family = option_font_cursive; + break; + case CSS_FONT_FAMILY_FANTASY: + *font_family = option_font_fantasy; + break; + default: + *font_family = option_font_sans; + break; + } break; } -- cgit v1.2.3