Re: pango fonts default aliases --> gnome fonts?



>>>>> On 29 Jan 2003 11:07:54 +0100,
>>>>> "RD" == Radek Doulík <rodo ximian com> wrote:

RD> Modified patch attached.

Well, style selection on gedit seems not to work for alias
font as Sans and Serif, because
gnome_font_family_style_list() ignores the alias font. I'm
not sure attached patch is correct. but is_alias is checked
only here now.
And if GPFontEntry->name is not GPFontEntry->familyname +
speciesname, this patch may not works correctly, though.

Regards,
--
Akira TAGOH
diff -ruN libgnomeprint-2.2.1.orig/libgnomeprint/gnome-font-family.c libgnomeprint-2.2.1/libgnomeprint/gnome-font-family.c
--- libgnomeprint-2.2.1.orig/libgnomeprint/gnome-font-family.c	2003-01-30 20:57:17.000000000 +0900
+++ libgnomeprint-2.2.1/libgnomeprint/gnome-font-family.c	2003-01-30 20:58:19.000000000 +0900
@@ -144,8 +144,10 @@
 		for (l = f->fonts; l != NULL; l = l->next) {
 			GPFontEntry * e;
 			e = (GPFontEntry *) l->data;
+/*
 			if (e->is_alias)
 				continue;
+*/
 			list = g_list_prepend (list, g_strdup (e->speciesname));
 		}
 		list = g_list_reverse (list);
diff -ruN libgnomeprint-2.2.1.orig/libgnomeprint/gnome-fontmap.c libgnomeprint-2.2.1/libgnomeprint/gnome-fontmap.c
--- libgnomeprint-2.2.1.orig/libgnomeprint/gnome-fontmap.c	2003-01-30 20:57:17.000000000 +0900
+++ libgnomeprint-2.2.1/libgnomeprint/gnome-fontmap.c	2003-01-30 21:03:40.000000000 +0900
@@ -234,6 +234,8 @@
 	e->name   = g_strdup (name);
 	my_g_free (e->familyname);
 	e->familyname = g_strdup (family);
+	my_g_free (e->speciesname);
+	e->speciesname = g_strdup (name + strlen (family) + 1);
 	e->is_alias = TRUE;
 	   
 	return e;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]