summaryrefslogtreecommitdiff
path: root/pango/pangoxft.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-07-03 22:30:36 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-07-03 22:30:36 +0000
commit145341236ea2dad9e5a0e7270d0b6dc7d9b09770 (patch)
tree0b915833a0191f13c8b410de1db69a50928f471c /pango/pangoxft.h
parent325238c642d9f89a4e46df6cf1bd6c9942097c1b (diff)
downloadpango-145341236ea2dad9e5a0e7270d0b6dc7d9b09770.tar.gz
New function to allow tweaking of FcPattern default substitution (for
Mon Jul 1 19:45:10 2002 Owen Taylor <otaylor@redhat.com> * pango/pangoxft-fontmap.c (pango_xft_set_default_substitute): New function to allow tweaking of FcPattern default substitution (for XSETTINGS support.) * pango/pangoft2-fontmap.c pango/pangoft2.[ch] pango/pangoft2-private.h: Rationalize DPI and context creation by adding: pango_ft2_font_map_new() pango_ft2_font_map_set_resolution() pango_ft2_font_map_set_default_substitute() pango_ft2_font_map_create_context()
Diffstat (limited to 'pango/pangoxft.h')
-rw-r--r--pango/pangoxft.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/pango/pangoxft.h b/pango/pangoxft.h
index a268351f..24f14b7e 100644
--- a/pango/pangoxft.h
+++ b/pango/pangoxft.h
@@ -39,6 +39,9 @@ G_BEGIN_DECLS
#define PANGO_RENDER_TYPE_XFT "PangoRenderXft"
+typedef void (*PangoXftSubstituteFunc) (FcPattern *pattern,
+ gpointer data);
+
/* Calls for applications
*/
PangoContext *pango_xft_get_context (Display *display,
@@ -57,6 +60,14 @@ void pango_xft_picture_render (Display *display,
gint x,
gint y);
+void pango_xft_set_default_substitute (Display *display,
+ int screen,
+ PangoXftSubstituteFunc func,
+ gpointer data,
+ GDestroyNotify notify);
+void pango_xft_substitute_changed (Display *display,
+ int screen);
+
#define PANGO_TYPE_XFT_FONT (pango_xft_font_get_type ())
#define PANGO_XFT_IS_FONT(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_XFT_FONT))