Use weight 500 for Medium desktop font.

svn path=/trunk/netsurf/; revision=2881
This commit is contained in:
James Bursa 2006-08-22 00:08:18 +00:00
parent 006cea55e7
commit 3cafb693ee

View File

@ -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, '.');