src/conversation.c

changeset 1441
71e46d36113b
parent 1440
202adf8b7e4b
child 1442
998377f2f876
--- a/src/conversation.c	Mon Jan 29 01:13:31 2001 +0000
+++ b/src/conversation.c	Mon Jan 29 01:19:24 2001 +0000
@@ -61,6 +61,7 @@
 GdkBitmap *dark_icon_bm = NULL;
 
 char fontface[64];
+int fontsize = 3;
 extern GdkColor bgcolor;
 extern GdkColor fgcolor;
 
@@ -638,6 +639,11 @@
 			strcpy(buf, buf2);
 		}
 
+		if ((font_options & OPT_FONT_SIZE) || c->hassize) {
+			g_snprintf(buf2, limit, "<FONT SIZE=\"%d\">%s</FONT>", c->fontsize, buf);
+			strcpy(buf, buf2);
+		}
+
 		if ((font_options & OPT_FONT_FGCOL) || c->hasfg) {
 			g_snprintf(buf2, limit, "<FONT COLOR=\"#%02X%02X%02X\">%s</FONT>", c->fgcol.red,
 				   c->fgcol.green, c->fgcol.blue, buf);
@@ -1689,6 +1695,8 @@
 	c->log_dialog = NULL;
 	sprintf(c->fontface, "%s", fontface);
 	c->hasfont = 0;
+	c->fontsize = fontsize;
+	c->hassize = 0;
 	c->bgcol = bgcolor;
 	c->hasbg = 0;
 	c->fgcol = fgcolor;

mercurial