pidgin: 7e168c9e: Change the font size mapping table in pu...
markdoliner at pidgin.im
markdoliner at pidgin.im
Mon Dec 22 14:20:58 EST 2008
-----------------------------------------------------------------
Revision: 7e168c9ea901cc868e1385142e4d74fe6da95c41
Ancestor: 009418751e4d83e57c29aee1698b3949c9fb7811
Author: markdoliner at pidgin.im
Date: 2008-12-22T19:14:50
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/7e168c9ea901cc868e1385142e4d74fe6da95c41
Modified files:
libpurple/util.c
ChangeLog:
Change the font size mapping table in purple_markup_html_to_xhtml() to
use the values suggested in the CSS 2.1 specification. This should
make fonts sent and received by Pidgin closer to their intended size.
http://www.w3.org/TR/CSS21/fonts.html#font-size-props
-------------- next part --------------
============================================================
--- libpurple/util.c b1e2422dba120c0c8639cfbace7fc771d728b9d4
+++ libpurple/util.c 77cae668d7a9db7f0c0ad9cecbcc3c5346a2a30f
@@ -1676,20 +1676,18 @@ purple_markup_html_to_xhtml(const char *
size = "xx-small";
break;
case 2:
- size = "x-small";
+ size = "small";
break;
case 3:
- size = "small";
+ size = "medium";
break;
case 4:
- size = "medium";
+ size = "large";
break;
case 5:
- size = "large";
- break;
- case 6:
size = "x-large";
break;
+ case 6:
case 7:
size = "xx-large";
break;
More information about the Commits
mailing list