summaryrefslogtreecommitdiff
path: root/pango/pangocairo-fcfontmap.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-09-18 19:17:32 +0000
committerMatthias Clasen <mclasen@redhat.com>2020-09-18 19:17:32 +0000
commit3d1240ae397d1637be6887815221bc17112ad4ce (patch)
tree1d71eb13e526ac0b3a19b2aaba0610160976c81e /pango/pangocairo-fcfontmap.c
parentd3d211a0e8ce537da876ddce7c442b2d4a6197a6 (diff)
parente023cf0d66b323359740c453481507ab91005a34 (diff)
downloadpango-3d1240ae397d1637be6887815221bc17112ad4ce.tar.gz
Merge branch 'ch/83' into 'master'
Add pango_fc_font_map_set_default_substitute Closes #83 See merge request GNOME/pango!191
Diffstat (limited to 'pango/pangocairo-fcfontmap.c')
-rw-r--r--pango/pangocairo-fcfontmap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pango/pangocairo-fcfontmap.c b/pango/pangocairo-fcfontmap.c
index 015b8170..dec59c8b 100644
--- a/pango/pangocairo-fcfontmap.c
+++ b/pango/pangocairo-fcfontmap.c
@@ -105,6 +105,8 @@ pango_cairo_fc_font_map_fontset_key_substitute (PangoFcFontMap *fcfontmap G_G
{
FcConfigSubstitute (pango_fc_font_map_get_config (fcfontmap), pattern, FcMatchPattern);
+ if (fcfontmap->substitute_func)
+ fcfontmap->substitute_func (pattern, fcfontmap->substitute_data);
if (fontkey)
cairo_ft_font_options_substitute (pango_fc_fontset_key_get_context_key (fontkey),
pattern);