Mercurial > pidgin
comparison src/gtkimhtml.c @ 2140:66a84ff0445a
[gaim-migrate @ 2150]
bmiller's continued coolness
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Thu, 09 Aug 2001 16:53:19 +0000 |
parents | 6402958c64c9 |
children | 98c434792ab7 |
comparison
equal
deleted
inserted
replaced
2139:a14e8459c233 | 2140:66a84ff0445a |
---|---|
1635 bold ? "bold" : "medium", | 1635 bold ? "bold" : "medium", |
1636 italics ? 'i' : 'r', | 1636 italics ? 'i' : 'r', |
1637 size); | 1637 size); |
1638 font = gdk_font_load (buf); | 1638 font = gdk_font_load (buf); |
1639 | 1639 |
1640 if (!font && italics) { | |
1641 g_snprintf (buf, sizeof (buf), "-*-%s-%s-o-*-*-*-%d-*-*-*-*-iso8859-*", | |
1642 choice, | |
1643 bold ? "bold" : "medium", | |
1644 size); | |
1645 font = gdk_font_load (buf); | |
1646 } | |
1647 | |
1640 if (!font) { | 1648 if (!font) { |
1641 g_snprintf (buf, sizeof (buf), "-*-%s-%s-%c-*-*-*-*-*-*-*-*-iso8859-*", | 1649 g_snprintf (buf, sizeof (buf), "-*-%s-%s-%c-*-*-*-*-*-*-*-*-iso8859-*", |
1642 choice, | 1650 choice, |
1643 bold ? "bold" : "medium", | 1651 bold ? "bold" : "medium", |
1644 italics ? 'i' : 'r'); | 1652 italics ? 'i' : 'r'); |
1653 font = gdk_font_load (buf); | |
1654 } | |
1655 | |
1656 if (!font && italics) { | |
1657 g_snprintf (buf, sizeof (buf), "-*-%s-%s-o-*-*-*-*-*-*-*-*-iso8859-*", | |
1658 choice, | |
1659 bold ? "bold" : "medium"); | |
1645 font = gdk_font_load (buf); | 1660 font = gdk_font_load (buf); |
1646 } | 1661 } |
1647 | 1662 |
1648 if (!font) { | 1663 if (!font) { |
1649 g_snprintf (buf, sizeof (buf), "-*-%s-*-%c-*-*-*-*-*-*-*-*-iso8859-*", | 1664 g_snprintf (buf, sizeof (buf), "-*-%s-*-%c-*-*-*-*-*-*-*-*-iso8859-*", |
1672 italics ? 'i' : 'r', | 1687 italics ? 'i' : 'r', |
1673 size); | 1688 size); |
1674 font = gdk_font_load (buf); | 1689 font = gdk_font_load (buf); |
1675 } | 1690 } |
1676 | 1691 |
1692 if (!font && italics) { | |
1693 g_snprintf (buf, sizeof (buf), "-*-%s-%s-o-*-*-*-%d-*-*-*-*-*-*", | |
1694 choice, | |
1695 bold ? "bold" : "medium", | |
1696 size); | |
1697 font = gdk_font_load (buf); | |
1698 } | |
1699 | |
1677 if (!font) { | 1700 if (!font) { |
1678 g_snprintf (buf, sizeof (buf), "-*-%s-%s-%c-*-*-*-*-*-*-*-*-*-*", | 1701 g_snprintf (buf, sizeof (buf), "-*-%s-%s-%c-*-*-*-*-*-*-*-*-*-*", |
1679 choice, | 1702 choice, |
1680 bold ? "bold" : "medium", | 1703 bold ? "bold" : "medium", |
1681 italics ? 'i' : 'r'); | 1704 italics ? 'i' : 'r'); |
1705 font = gdk_font_load (buf); | |
1706 } | |
1707 | |
1708 if (!font) { | |
1709 g_snprintf (buf, sizeof (buf), "-*-%s-%s-o-*-*-*-*-*-*-*-*-*-*", | |
1710 choice, | |
1711 bold ? "bold" : "medium"); | |
1682 font = gdk_font_load (buf); | 1712 font = gdk_font_load (buf); |
1683 } | 1713 } |
1684 | 1714 |
1685 if (!font) { | 1715 if (!font) { |
1686 g_snprintf (buf, sizeof (buf), "-*-%s-*-%c-*-*-*-*-*-*-*-*-*-*", | 1716 g_snprintf (buf, sizeof (buf), "-*-%s-*-%c-*-*-*-*-*-*-*-*-*-*", |
2812 font->back = gdk_color_copy (oldfont->back); | 2842 font->back = gdk_color_copy (oldfont->back); |
2813 } else { | 2843 } else { |
2814 if (!font->size) | 2844 if (!font->size) |
2815 font->size = 3; | 2845 font->size = 3; |
2816 if (!font->face) | 2846 if (!font->face) |
2817 font->face = g_strdup ("helvetica"); | 2847 font->face = g_strdup (DEFAULT_FONT_NAME); |
2818 } | 2848 } |
2819 | 2849 |
2820 fonts = g_slist_prepend (fonts, font); | 2850 fonts = g_slist_prepend (fonts, font); |
2821 got_tag = TRUE; | 2851 got_tag = TRUE; |
2822 } else if (!g_strcasecmp (tag, "</FONT>")) { | 2852 } else if (!g_strcasecmp (tag, "</FONT>")) { |