summaryrefslogtreecommitdiff
path: root/pango/pangoft2.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/pangoft2.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/pangoft2.h')
-rw-r--r--pango/pangoft2.h36
1 files changed, 31 insertions, 5 deletions
diff --git a/pango/pangoft2.h b/pango/pangoft2.h
index 1eaeda05..10dc143c 100644
--- a/pango/pangoft2.h
+++ b/pango/pangoft2.h
@@ -23,16 +23,31 @@
#ifndef __PANGOFT2_H__
#define __PANGOFT2_H__
-#include <pango/pango-layout.h>
-
#include <freetype/freetype.h>
+#include <fontconfig/fontconfig.h>
+
+#include <pango/pango-layout.h>
+
G_BEGIN_DECLS
#define PANGO_RENDER_TYPE_FT2 "PangoRenderFT2"
+#define PANGO_TYPE_FT2_FONT_MAP (pango_ft2_font_map_get_type ())
+#define PANGO_FT2_FONT_MAP(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_FT2_FONT_MAP, PangoFT2FontMap))
+#define PANGO_FT2_IS_FONT_MAP(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_FT2_FONT_MAP))
+
+typedef struct _PangoFT2FontMap PangoFT2FontMap;
+
+typedef void (*PangoFT2SubstituteFunc) (FcPattern *pattern,
+ gpointer data);
+
/* Calls for applications */
-PangoContext *pango_ft2_get_context (double dpi_x, double dpi_y);
+PangoContext *pango_ft2_get_context (double dpi_x,
+ double dpi_y);
+PangoFontMap *pango_ft2_font_map_for_display (void);
+void pango_ft2_shutdown_display (void);
+
void pango_ft2_render (FT_Bitmap *bitmap,
PangoFont *font,
@@ -48,8 +63,19 @@ void pango_ft2_render_layout (FT_Bitmap *bitmap,
int x,
int y);
-PangoFontMap *pango_ft2_font_map_for_display (void);
-void pango_ft2_shutdown_display (void);
+GType pango_ft2_font_map_get_type (void);
+
+PangoFontMap *pango_ft2_font_map_new (void);
+void pango_ft2_font_map_set_resolution (PangoFT2FontMap *fontmap,
+ double dpi_x,
+ double dpi_y);
+void pango_ft2_font_map_set_default_substitute (PangoFT2FontMap *fontmap,
+ PangoFT2SubstituteFunc func,
+ gpointer data,
+ GDestroyNotify notify);
+void pango_ft2_font_map_substitute_changed (PangoFT2FontMap *fontmap);
+PangoContext *pango_ft2_font_map_create_context (PangoFT2FontMap *fontmap);
+
/* API for rendering modules
*/