diff options
Diffstat (limited to 'riscos/font.c')
-rw-r--r-- | riscos/font.c | 21 |
1 files changed, 20 insertions, 1 deletions
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; } |