pango r2641 - in trunk: . pango



Author: tml
Date: Tue May 27 09:17:24 2008
New Revision: 2641
URL: http://svn.gnome.org/viewvc/pango?rev=2641&view=rev

Log:
2008-05-27  Tor Lillqvist  <tml novell com>

	* pango/pangowin32-fontmap.c (pango_win32_family_list_faces):
	After the change to how the standard pseudo font families are set
	up below, we don't need to prune out duplicate face names any
	longer.



Modified:
   trunk/ChangeLog
   trunk/pango/pangowin32-fontmap.c

Modified: trunk/pango/pangowin32-fontmap.c
==============================================================================
--- trunk/pango/pangowin32-fontmap.c	(original)
+++ trunk/pango/pangowin32-fontmap.c	Tue May 27 09:17:24 2008
@@ -479,17 +479,7 @@
   n = 0;
   while (p)
     {
-      GSList *q;
-      q = win32family->faces;
-      while (q != p)
-	{
-	  if (strcmp (pango_win32_face_get_face_name ((PangoFontFace *) q->data),
-		      pango_win32_face_get_face_name ((PangoFontFace *) p->data)) == 0)
-	    break;
-	  q = q->next;
-	}
-      if (q == p)
-	n++;
+      n++;
       p = p->next;
     }
 
@@ -503,15 +493,7 @@
       i = 0;
       while (p)
 	{
-	  int j;
-	  for (j = 0; j < i; j++)
-	    {
-	      if (strcmp (pango_win32_face_get_face_name ((*faces)[j]),
-			  pango_win32_face_get_face_name ((PangoFontFace *) p->data)) == 0)
-		break;
-	    }
-	  if (j == i)
-	    (*faces)[i++] = p->data;
+	  (*faces)[i++] = p->data;
 	  p = p->next;
 	}
     }



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