Mercurial > pidgin.yaz
changeset 24829:01bd85f65fa1
Change our font mapping in gtkimhtml to match the suggested values
in CSS 2.1
http://www.w3.org/TR/CSS21/fonts.html#font-size-props
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 22 Dec 2008 19:29:59 +0000 |
parents | 3d3376237a7c |
children | fbfbebc9197e |
files | pidgin/gtkimhtml.c |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkimhtml.c Mon Dec 22 19:14:50 2008 +0000 +++ b/pidgin/gtkimhtml.c Mon Dec 22 19:29:59 2008 +0000 @@ -3117,15 +3117,15 @@ else if (g_ascii_strcasecmp(size, "smaller") == 0 || g_ascii_strcasecmp(size, "x-small") == 0) font->size = 2; - else if (g_ascii_strcasecmp(size, "larger") == 0 - || g_ascii_strcasecmp(size, "medium") == 0) + else if (g_ascii_strcasecmp(size, "medium") == 0) + font->size = 3; + else if (g_ascii_strcasecmp(size, "large") == 0 + || g_ascii_strcasecmp(size, "larger") == 0) font->size = 4; - else if (g_ascii_strcasecmp(size, "large") == 0) + else if (g_ascii_strcasecmp(size, "x-large") == 0) font->size = 5; - else if (g_ascii_strcasecmp(size, "x-large") == 0) + else if (g_ascii_strcasecmp(size, "xx-large") == 0) font->size = 6; - else if (g_ascii_strcasecmp(size, "xx-large") == 0) - font->size = 7; /* * TODO: Handle other values, like percentages, or