diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2010-09-21 15:47:17 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2010-09-21 15:49:07 -0400 |
commit | 64ada662476f5b5506a9a455f4c39242ab51ff38 (patch) | |
tree | e823ef001fb95198ba0fea2944db8334daef4942 /pango/pango-ot-buffer.c | |
parent | e008ca8f198965b55fc4ef297b4d31902b5afc36 (diff) | |
parent | 254f42980e272f0560b28d466c2b65a1748b1132 (diff) | |
download | pango-64ada662476f5b5506a9a455f4c39242ab51ff38.tar.gz |
Merge branch 'master' into harfbuzz-ng-external
Conflicts:
pango/Makefile.am
pango/pango-ot-buffer.c
pango/pango-ot-info.c
Removed:
pango/opentype/Makefile.am
pango/opentype/hb-blob.c
pango/opentype/hb-open-file-private.hh
pango/opentype/hb-open-type-private.hh
pango/opentype/hb-ot-layout-common-private.hh
pango/opentype/hb-ot-layout-gdef-private.hh
pango/opentype/hb-ot-layout-gpos-private.hh
pango/opentype/hb-ot-layout-gsub-private.hh
pango/opentype/hb-ot-layout-gsubgpos-private.hh
pango/opentype/hb-ot-layout.cc
pango/opentype/hb-ot-layout.h
pango/opentype/hb-private.h
Diffstat (limited to 'pango/pango-ot-buffer.c')
-rw-r--r-- | pango/pango-ot-buffer.c | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/pango/pango-ot-buffer.c b/pango/pango-ot-buffer.c index e818d618..e4b64360 100644 --- a/pango/pango-ot-buffer.c +++ b/pango/pango-ot-buffer.c @@ -23,6 +23,7 @@ #include "pango-ot-private.h" #include "pangofc-private.h" +#include "pango-impl-utils.h" /* cache a single hb_buffer_t */ static hb_buffer_t *cached_buffer = NULL; @@ -214,26 +215,6 @@ pango_ot_buffer_get_glyphs (const PangoOTBuffer *buffer, *n_glyphs = hb_buffer_get_length (buffer->buffer); } -static void -swap_range (PangoGlyphString *glyphs, int start, int end) -{ - int i, j; - - for (i = start, j = end - 1; i < j; i++, j--) - { - PangoGlyphInfo glyph_info; - gint log_cluster; - - glyph_info = glyphs->glyphs[i]; - glyphs->glyphs[i] = glyphs->glyphs[j]; - glyphs->glyphs[j] = glyph_info; - - log_cluster = glyphs->log_clusters[i]; - glyphs->log_clusters[i] = glyphs->log_clusters[j]; - glyphs->log_clusters[j] = log_cluster; - } -} - /** * pango_ot_buffer_output * @buffer: a #PangoOTBuffer @@ -285,7 +266,7 @@ pango_ot_buffer_output (const PangoOTBuffer *buffer, } if (buffer->rtl) - swap_range (glyphs, 0, glyphs->num_glyphs); + pango_glyph_string_reverse_range (glyphs, 0, glyphs->num_glyphs); if (!buffer->applied_gpos) pango_fc_font_kern_glyphs (buffer->font, glyphs); } |