From 3cafb693ee068d35ede01116e6835b824e6c996d Mon Sep 17 00:00:00 2001 From: James Bursa Date: Tue, 22 Aug 2006 00:08:18 +0000 Subject: [PATCH] Use weight 500 for Medium desktop font. svn path=/trunk/netsurf/; revision=2881 --- riscos/font.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/riscos/font.c b/riscos/font.c index 9a53a4780..b48b9342b 100644 --- a/riscos/font.c +++ b/riscos/font.c @@ -579,9 +579,11 @@ void ro_gui_wimp_desktop_font(char *family, size_t family_size, int *psize, LOG(("desktop font \"%s\"", family)); - if (strstr(family, ".Bold")) + if (strcasestr(family, ".Medium")) + style = rufl_WEIGHT_500; + else if (strcasestr(family, ".Bold")) style = rufl_WEIGHT_700; - if (strstr(family, ".Italic") || strstr(family, ".Oblique")) + if (strcasestr(family, ".Italic") || strcasestr(family, ".Oblique")) style |= rufl_SLANTED; char *dot = strchr(family, '.');