summaryrefslogtreecommitdiff
path: root/pango/pangofc-fontmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/pangofc-fontmap.c')
-rw-r--r--pango/pangofc-fontmap.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/pango/pangofc-fontmap.c b/pango/pangofc-fontmap.c
index 6ef90019..4db62159 100644
--- a/pango/pangofc-fontmap.c
+++ b/pango/pangofc-fontmap.c
@@ -1565,6 +1565,11 @@ pango_fc_font_map_new_font (PangoFcFontMap *fcfontmap,
return NULL;
fcfont->matrix = key.matrix;
+ /* In case the backend didn't set the fontmap */
+ if (!fcfont->fontmap)
+ g_object_set (fcfont,
+ "fontmap", fcfontmap,
+ NULL);
/* cache it on fontmap */
pango_fc_font_map_add (fcfontmap, &key, fcfont);