Mercurial > pidgin
diff src/gtkhtml.c @ 721:8e7ad10b5f26
[gaim-migrate @ 731]
faim fix, and font may load faster now (?)
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Fri, 18 Aug 2000 19:21:11 +0000 |
| parents | 8b3412f3ac2a |
| children | 6609b5a16b38 |
line wrap: on
line diff
--- a/src/gtkhtml.c Fri Aug 18 18:44:29 2000 +0000 +++ b/src/gtkhtml.c Fri Aug 18 19:21:11 2000 +0000 @@ -548,6 +548,18 @@ size += 10; } + /* whoops, couldn't do any of those. maybe they have a default outgoing + * font? maybe we can use that. */ + if (fontface[0]) { + /* woohoo! */ + size = 120; + while (size <= 720) { + if (load_font_with_cache(fontface, "medium", 'r', size, &my_font)) + return my_font; + size += 10; + } + } + /* ok, now we're in a pickle. if we can't do any of the above, let's * try doing the most boring font we can find. */ size = 120;
