summaryrefslogtreecommitdiff
path: root/pango/pango-engine.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2000-02-01 18:52:17 +0000
committerOwen Taylor <otaylor@src.gnome.org>2000-02-01 18:52:17 +0000
commit82d8346691a72e4dd37a1e3999a939be269df32d (patch)
tree644477eb228b5e7f96460ae3e94bd718006d8937 /pango/pango-engine.h
parent532c6902c34f47d5f838623c951e53d5fcdd395f (diff)
downloadpango-82d8346691a72e4dd37a1e3999a939be269df32d.tar.gz
Conditionally define G_N_ELEMENTS() when using glib-1.3.
Wed Feb 2 11:12:12 2000 Owen Taylor <otaylor@redhat.com> * libpango/pango-types.h: Conditionally define G_N_ELEMENTS() when using glib-1.3. * modules/basic/basic.c modules/hangul/hangul.c modules/tamil/tamil.c: Replace MEMBERS() with G_N_ELEMENTS(). * libpango/pango-engine.h: Added a get_coverage() function to the PangoEngineShape vtable. * modules/basic/basic.c modules/hangul/hangul.c modules/tamil/tamil.c: Added get_coverage() functions. The basic.c one is incredibly inefficient (but caching may make that matter that much). The Hangul one needs checking.
Diffstat (limited to 'pango/pango-engine.h')
-rw-r--r--pango/pango-engine.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/pango/pango-engine.h b/pango/pango-engine.h
index ccd7b219..9d56163a 100644
--- a/pango/pango-engine.h
+++ b/pango/pango-engine.h
@@ -67,7 +67,7 @@ struct _PangoEngine
struct _PangoEngineLang
{
PangoEngine engine;
- void (*script_break) (gchar *text,
+ void (*script_break) (const char *text,
int len,
PangoAnalysis *analysis,
PangoLogAttr *attrs);
@@ -77,10 +77,12 @@ struct _PangoEngineShape
{
PangoEngine engine;
void (*script_shape) (PangoFont *font,
- char *text,
+ const char *text,
int length,
PangoAnalysis *analysis,
PangoGlyphString *glyphs);
+ PangoCoverage *(*get_coverage) (PangoFont *font,
+ const char *lang);
};
/* A module should export the following functions */