summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
authorCaleb Hearon <crh0872@gmail.com>2020-05-31 17:51:06 +0000
committerCaleb Hearon <crh0872@gmail.com>2020-06-13 03:29:35 +0000
commit79baf68b39e7654f8f00c60c8a86ef6054a391dc (patch)
tree177229d4e0668edd82c46f0cf778a435496b60da /pango
parentb1411194d196471fad7984a73044a3c19e7d884d (diff)
downloadpango-79baf68b39e7654f8f00c60c8a86ef6054a391dc.tar.gz
single function type for FC substitute callback
Diffstat (limited to 'pango')
-rw-r--r--pango/pangofc-fontmap.h9
-rw-r--r--pango/pangoft2.h4
-rw-r--r--pango/pangoxft.h4
3 files changed, 13 insertions, 4 deletions
diff --git a/pango/pangofc-fontmap.h b/pango/pangofc-fontmap.h
index a41ae1d9..f7cc88b4 100644
--- a/pango/pangofc-fontmap.h
+++ b/pango/pangofc-fontmap.h
@@ -106,6 +106,15 @@ hb_face_t * pango_fc_font_map_get_hb_face (PangoFcFontMap *fcfontmap,
PangoFcFont *fcfont);
/**
+ * PangoFcSubstituteFunc:
+ * @pattern: the FcPattern to tweak.
+ * @data: user data.
+ *
+ * Function type for doing final config tweaking on prepared FcPatterns.
+ */
+typedef void (*PangoFcSubstituteFunc) (FcPattern *pattern,
+ gpointer data);
+/**
* PANGO_FC_GRAVITY:
*
* String representing a fontconfig property name that Pango sets on any
diff --git a/pango/pangoft2.h b/pango/pangoft2.h
index 483bc366..2f45c9e3 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 */
diff --git a/pango/pangoxft.h b/pango/pangoxft.h
index f14b89c9..95898f80 100644
--- a/pango/pangoxft.h
+++ b/pango/pangoxft.h
@@ -23,6 +23,7 @@
#ifndef __PANGOXFT_H__
#define __PANGOXFT_H__
+#include <pango/pangofc-fontmap.h>
#include <pango/pango-context.h>
#include <pango/pango-ot.h>
#include <pango/pangofc-font.h>
@@ -84,8 +85,7 @@ typedef struct _PangoXftFont PangoXftFont;
*
* Function type for doing final config tweaking on prepared FcPatterns.
*/
-typedef void (*PangoXftSubstituteFunc) (FcPattern *pattern,
- gpointer data);
+typedef PangoFcSubstituteFunc PangoXftSubstituteFunc;
/* Calls for applications
*/