From a8bbb8fa9a2cc1b9a2ce1467c053c2d1ff2534da Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 27 May 2008 09:17:24 +0000 Subject: After the change to how the standard pseudo font families are set up 2008-05-27 Tor Lillqvist * 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. svn path=/trunk/; revision=2641 --- pango/pangowin32-fontmap.c | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) (limited to 'pango/pangowin32-fontmap.c') diff --git a/pango/pangowin32-fontmap.c b/pango/pangowin32-fontmap.c index 21c7583e..3686103d 100644 --- a/pango/pangowin32-fontmap.c +++ b/pango/pangowin32-fontmap.c @@ -479,17 +479,7 @@ pango_win32_family_list_faces (PangoFontFamily *family, 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 @@ pango_win32_family_list_faces (PangoFontFamily *family, 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; } } -- cgit v1.2.1