pidgin: 8a7ddd4c: Change our font mapping in gtkimhtml to ...

markdoliner at pidgin.im markdoliner at pidgin.im
Mon Dec 22 14:36:34 EST 2008


-----------------------------------------------------------------
Revision: 8a7ddd4cbdac3a9819bed3b488b0fa1526888718
Ancestor: 7e168c9ea901cc868e1385142e4d74fe6da95c41
Author: markdoliner at pidgin.im
Date: 2008-12-22T19:29:59
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/8a7ddd4cbdac3a9819bed3b488b0fa1526888718

Modified files:
        pidgin/gtkimhtml.c

ChangeLog: 

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

-------------- next part --------------
============================================================
--- pidgin/gtkimhtml.c	53aa0f5b28f3406cde52e16267d277320da12b52
+++ pidgin/gtkimhtml.c	0fd756c0f7debfce97d420b12aa86351e0233016
@@ -3117,15 +3117,15 @@ void gtk_imhtml_insert_html_at_iter(GtkI
 							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)
-								font->size = 5;
 							else if (g_ascii_strcasecmp(size, "x-large") == 0)
-								font->size = 6;
+								font->size = 5;
 							else if (g_ascii_strcasecmp(size, "xx-large") == 0)
-								font->size = 7;
+								font->size = 6;
 
 							/*
 							 * TODO: Handle other values, like percentages, or


More information about the Commits mailing list