summaryrefslogtreecommitdiff
path: root/pango/pangoft2.h
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/pangoft2.h
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/pangoft2.h')
-rw-r--r--pango/pangoft2.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/pango/pangoft2.h b/pango/pangoft2.h
index 483bc366..cda3b51e 100644
--- a/pango/pangoft2.h
+++ b/pango/pangoft2.h
@@ -28,6 +28,7 @@
#include <ft2build.h>
#include FT_FREETYPE_H
+#include <pango/pangofc-fontmap.h>
#include <pango/pango-layout.h>
#include <pango/pangofc-font.h>
@@ -66,8 +67,7 @@ typedef struct _PangoFT2FontMap PangoFT2FontMap;
*
* Function type for doing final config tweaking on prepared FcPatterns.
*/
-typedef void (*PangoFT2SubstituteFunc) (FcPattern *pattern,
- gpointer data);
+typedef PangoFcSubstituteFunc PangoFT2SubstituteFunc;
/* Calls for applications */
@@ -115,6 +115,7 @@ PANGO_AVAILABLE_IN_1_2
void pango_ft2_font_map_set_resolution (PangoFT2FontMap *fontmap,
double dpi_x,
double dpi_y);
+#ifndef PANGO_DISABLE_DEPRECATED
PANGO_AVAILABLE_IN_1_2
void pango_ft2_font_map_set_default_substitute (PangoFT2FontMap *fontmap,
PangoFT2SubstituteFunc func,
@@ -122,7 +123,6 @@ void pango_ft2_font_map_set_default_substitute (PangoFT2FontMap
GDestroyNotify notify);
PANGO_AVAILABLE_IN_1_2
void pango_ft2_font_map_substitute_changed (PangoFT2FontMap *fontmap);
-#ifndef PANGO_DISABLE_DEPRECATED
PANGO_DEPRECATED_IN_1_22_FOR(pango_font_map_create_context)
PangoContext *pango_ft2_font_map_create_context (PangoFT2FontMap *fontmap);
#endif