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 /modules | |
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 'modules')
-rw-r--r-- | modules/arabic/arabic-x.c | 4 | ||||
-rw-r--r-- | modules/arabic/arabic.c | 4 | ||||
-rw-r--r-- | modules/arabic/arconv.h | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/modules/arabic/arabic-x.c b/modules/arabic/arabic-x.c index 805c7bba..385ac217 100644 --- a/modules/arabic/arabic-x.c +++ b/modules/arabic/arabic-x.c @@ -236,8 +236,8 @@ arabic_engine_shape (PangoFont *font, p = text; for (i=0; i<n_chars; i++) { - set_glyph (glyphs, font, arfonts[0], i, - p - text, unknown_glyph); + set_glyph (glyphs, font, PANGO_X_GLYPH_SUBFONT (unknown_glyph), i, + p - text, PANGO_X_GLYPH_INDEX (unknown_glyph)); p = unicode_next_utf8 (p); } return; diff --git a/modules/arabic/arabic.c b/modules/arabic/arabic.c index 805c7bba..385ac217 100644 --- a/modules/arabic/arabic.c +++ b/modules/arabic/arabic.c @@ -236,8 +236,8 @@ arabic_engine_shape (PangoFont *font, p = text; for (i=0; i<n_chars; i++) { - set_glyph (glyphs, font, arfonts[0], i, - p - text, unknown_glyph); + set_glyph (glyphs, font, PANGO_X_GLYPH_SUBFONT (unknown_glyph), i, + p - text, PANGO_X_GLYPH_INDEX (unknown_glyph)); p = unicode_next_utf8 (p); } return; diff --git a/modules/arabic/arconv.h b/modules/arabic/arconv.h index 6a9d7233..d266b9d7 100644 --- a/modules/arabic/arconv.h +++ b/modules/arabic/arconv.h @@ -7,7 +7,7 @@ #ifndef __arconv_h_ #define __arconv_h_ -#include "../../libpango/utils.h" +#include "utils.h" /* * arabic_reshape: reshapes string ( ordered left-to right visual order ) |