diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2007-08-15 19:23:54 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2007-08-15 19:23:54 +0000 |
commit | f90163fecc2f1e10ea1c800c2ac3045b485398bd (patch) | |
tree | 4c0f0455ee3eabf4b09de5142a15fa1c194c9838 /pango/pango-impl-utils.h | |
parent | cb816fe9b636b832e8383acc03654f92edb583d3 (diff) | |
download | pango-f90163fecc2f1e10ea1c800c2ac3045b485398bd.tar.gz |
Bug 467056 – Shape attribute handling is not consistent
2007-08-15 Behdad Esfahbod <behdad@gnome.org>
Bug 467056 – Shape attribute handling is not consistent
* pango/pango-impl-utils.h:
* pango/pango-layout.c (pango_layout_line_index_to_x), (shape_run),
(pango_layout_line_x_to_index), (pango_layout_run_get_extents),
(update_run):
* pango/pango-renderer.c (pango_renderer_draw_layout_line):
* pango/pango-utils.c (_pango_shape_shape),
(_pango_shape_get_extents):
Fix handling of extents for shaped runs. Previsouly a shaped run
with more than one character was not correctly positioned.
svn path=/trunk/; revision=2401
Diffstat (limited to 'pango/pango-impl-utils.h')
-rw-r--r-- | pango/pango-impl-utils.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/pango/pango-impl-utils.h b/pango/pango-impl-utils.h index 2f71dadf..1f60d84f 100644 --- a/pango/pango-impl-utils.h +++ b/pango/pango-impl-utils.h @@ -24,7 +24,7 @@ #define __PANGO_IMPL_UTILS_H__ #include <glib-object.h> -#include <pango/pango-utils.h> +#include <pango/pango.h> G_BEGIN_DECLS @@ -94,6 +94,19 @@ extern PangoWarningHistory _pango_warning_history; #define I_(string) g_intern_static_string (string) +/* Some functions for handling PANGO_ATTR_SHAPE */ +void _pango_shape_shape (const char *text, + gint n_chars, + PangoRectangle *shape_ink, + PangoRectangle *shape_logical, + PangoGlyphString *glyphs); + +void _pango_shape_get_extents (gint n_chars, + PangoRectangle *shape_ink, + PangoRectangle *shape_logical, + PangoRectangle *ink_rect, + PangoRectangle *logical_rect); + G_END_DECLS #endif /* __PANGO_IMPL_UTILS_H__ */ |