diff options
author | Caleb Hearon <crh0872@gmail.com> | 2020-06-08 22:22:55 +0000 |
---|---|---|
committer | Caleb Hearon <crh0872@gmail.com> | 2020-06-13 03:29:35 +0000 |
commit | e023cf0d66b323359740c453481507ab91005a34 (patch) | |
tree | 75171773d024713c7103d13c3764223908f7df8b /pango/pangocairo-fcfontmap.c | |
parent | 79baf68b39e7654f8f00c60c8a86ef6054a391dc (diff) | |
download | pango-e023cf0d66b323359740c453481507ab91005a34.tar.gz |
add pango_fc_font_map_set_default_substitute
added:
pango_fc_font_map_set_default_substitute
pango_fc_font_map_default_substitute_changed
deprecated:
pango_ft2_font_map_set_default_substitute
pango_ft2_font_map_changed
pango_xft_font_map_set_default_substitute
pango_xft_font_map_changed
Now PangoCairoFcFontMap will call what is passed to
pango_fc_font_map_set_default_substitute when it is time.
The deprecated functions make calls to the parent (FC) class now.
The user-supplied callbacks are executed in the exact same places as
before.
Diffstat (limited to 'pango/pangocairo-fcfontmap.c')
-rw-r--r-- | pango/pangocairo-fcfontmap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pango/pangocairo-fcfontmap.c b/pango/pangocairo-fcfontmap.c index bd3a8583..5fe61f54 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 (NULL, 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); |