[gaim-migrate @ 7173]

Fri, 29 Aug 2003 23:59:11 +0000

author
Daniel Sands <dnsands@sandia.gov>
date
Fri, 29 Aug 2003 23:59:11 +0000
changeset 6648
4926e5c544eb
parent 6647
fc3661a34b11
child 6649
05dc7e7aeaa8

[gaim-migrate @ 7173]
dnsands@sandia.gov noticed that:
"With AIM and custom font faces, the attributes (bold,
italics) will not be rendered in the conversation
window. This is because gtk's "font" attribute wants
the Pango font name for its selection, which goes in
the form of:

Font_Name attribs size

The attribs are the bold, italic, or bold italic
modifiers. Without these there will be no bold or italics.

Using the "family" attribute instead will allow the
bold and italic modifiers to change the text style.
With the "font" attribute, it seems these aspects of
the style are specified there and immutable."

committer: Luke Schierer <lschiere@pidgin.im>

src/gtkimhtml.c file | annotate | diff | comparison | revisions
--- a/src/gtkimhtml.c	Fri Aug 29 22:48:31 2003 +0000
+++ b/src/gtkimhtml.c	Fri Aug 29 23:59:11 2003 +0000
@@ -965,7 +965,7 @@
                                             gtk_text_buffer_apply_tag(imhtml->text_buffer, texttag, &siter, &iter); \
                                  } \
                                  if (fd->face) { \
-                                            texttag = gtk_text_buffer_create_tag(imhtml->text_buffer, NULL, "font", fd->face, NULL); \
+                                            texttag = gtk_text_buffer_create_tag(imhtml->text_buffer, NULL, "family", fd->face, NULL); \
                                             gtk_text_buffer_apply_tag(imhtml->text_buffer, texttag, &siter, &iter); \
                                  } \
                                  if (fd->size) { \

mercurial