Mercurial > pidgin.yaz
diff src/util.c @ 8686:140b0d020c43
[gaim-migrate @ 9439]
" This fixes the GTKIMHTML CSS processing so that it
works again:
- Added support for background colors in the CSS
processing.
- Log viewer will now display all formatting including
font colors, sizes, faces, etc.
- Jabber underline will now appear in received messages
- Logger will now log *ALL 7* possible font sizes
instead of just smaller (1-3), medium (4), and larger
(5-7) and recognize them in IMHTML.
This is accomplished by fixing the font size
specifications in gaim_markup_html_to_xhtml and then a
partial rewrite of the CSS formatting code." --Kevin Stange
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sun, 18 Apr 2004 00:21:58 +0000 |
parents | afff7b6ae29f |
children | ddd2bf87fe8d |
line wrap: on
line diff
--- a/src/util.c Sat Apr 17 18:50:46 2004 +0000 +++ b/src/util.c Sun Apr 18 00:21:58 2004 +0000 @@ -978,10 +978,32 @@ if(*q == '\'' || *q == '\"') q++; sz = atoi(q); - if(sz < 3) - size = "smaller"; - else if(sz > 3) - size = "larger"; + switch (sz) + { + case 1: + size = "xx-small"; + break; + case 2: + size = "x-small"; + break; + case 3: + size = "small"; + break; + case 4: + size = "medium"; + break; + case 5: + size = "large"; + break; + case 6: + size = "x-large"; + break; + case 7: + size = "xx-large"; + break; + default: + break; + } g_string_append_printf(style, "font-size: %s; ", size); p = q; }