diff options
author | Owen Taylor <otaylor@redhat.com> | 2000-04-03 19:16:36 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2000-04-03 19:16:36 +0000 |
commit | f3542cd8e6a4f666b3c39cb8d562a88369d9e858 (patch) | |
tree | 469cf50ef8da81606ccf592ead1b759f2dcdf8b4 /pango/pangox.h | |
parent | c1198ebb48f2eaf3e71a5f37b4ceaae16cba84d7 (diff) | |
download | pango-f3542cd8e6a4f666b3c39cb8d562a88369d9e858.tar.gz |
Fix off-by-one error for RTL runs.
Mon Apr 3 15:16:06 2000 Owen Taylor <otaylor@redhat.com>
* pango/glyphstring.c (pango_glyph_string_get_logical_widths):
Fix off-by-one error for RTL runs.
* configure.in: Add -lglib to AC_CHECK_LIB(fribidi...)
(How did this work?) From Matt Wilson.
* pango/pango-layout.c (pango_layout_check_lines): Correctly deal
with handling character offsets when breaking lines.
* modules/arabic/arabic.c (arabic_engine_shape): Fix problem with
setting unknown glyph when no arabic-capable font found.
Fri Mar 31 11:29:47 2000 Owen Taylor <otaylor@redhat.com>
* pango/pangox.[ch] (pango_x_render_layout[_line]) examples/viewer.c: Add
capability to render foreground / background colors. The interfaces
here are possibly certainly not right, or convenient, but
they should be a start.
Diffstat (limited to 'pango/pangox.h')
-rw-r--r-- | pango/pangox.h | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/pango/pangox.h b/pango/pangox.h index 3c077a44..3460263d 100644 --- a/pango/pangox.h +++ b/pango/pangox.h @@ -33,6 +33,9 @@ extern "C" { #define PANGO_RENDER_TYPE_X "PangoRenderX" +typedef GC (*PangoGetGCFunc) (PangoAttrColor *color, void *user_data); +typedef void (*PangoFreeGCFunc) (GC gc, void *user_data); + /* Calls for applications */ PangoContext * pango_x_get_context (Display *display); @@ -47,16 +50,20 @@ void pango_x_render (Display *display, gint y); void pango_x_render_layout_line (Display *display, Drawable drawable, - GC gc, PangoLayoutLine *line, int x, - int y); -void pango_x_render_layout (Display *display, - Drawable drawable, - GC gc, - PangoLayout *layout, - int x, - int y); + int y, + PangoGetGCFunc get_gc, + PangoFreeGCFunc free_gc, + gpointer user_data); +void pango_x_render_layout (Display *display, + Drawable drawable, + PangoLayout *layout, + int x, + int y, + PangoGetGCFunc get_gc, + PangoFreeGCFunc free_gc, + gpointer user_data); /* API for rendering modules */ |