summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--pango/pangofc-fontmap.c7
2 files changed, 13 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 1a8340e2..bc124bee 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2008-12-07 Behdad Esfahbod <behdad@gnome.org>
+ Bug 499624 – Spaces around commas in PangoFontDescription family name
+ should be trimmed
+
+ * pango/pangofc-fontmap.c (pango_fc_make_pattern): Trim family strings
+ before adding to pattern.
+
+2008-12-07 Behdad Esfahbod <behdad@gnome.org>
+
Bug 563557 – set g_get_prgname() in fc pattern
* docs/pango-sections.txt:
diff --git a/pango/pangofc-fontmap.c b/pango/pangofc-fontmap.c
index 5c5dbe58..edda2a3f 100644
--- a/pango/pangofc-fontmap.c
+++ b/pango/pangofc-fontmap.c
@@ -845,8 +845,11 @@ pango_fc_make_pattern (const PangoFontDescription *description,
families = g_strsplit (pango_font_description_get_family (description), ",", -1);
- for (i = 0; families[i]; i++)
- FcPatternAddString (pattern, FC_FAMILY, families[i]);
+ for (i = 0; families[i]; i++) {
+ char *family = pango_trim_string (families[i]);
+ FcPatternAddString (pattern, FC_FAMILY, family);
+ g_free (family);
+ }
g_strfreev (families);