[pango] [coretext] Reverse glyphs if right-to-left
- From: Behdad Esfahbod <behdad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango] [coretext] Reverse glyphs if right-to-left
- Date: Tue, 29 Jul 2014 14:59:18 +0000 (UTC)
commit 8d4d42e7b34ef625677a7adae020b0e6c7ebc136
Author: Behdad Esfahbod <behdad behdad org>
Date: Tue Jul 29 10:58:25 2014 -0400
[coretext] Reverse glyphs if right-to-left
The shape.c layer is doing this for clumsy backends but warns.
Fix properly.
modules/basic/basic-coretext.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/modules/basic/basic-coretext.c b/modules/basic/basic-coretext.c
index 0a2c27f..9e087ba 100644
--- a/modules/basic/basic-coretext.c
+++ b/modules/basic/basic-coretext.c
@@ -29,6 +29,7 @@
#include "pango-utils.h"
#include "pango-fontmap.h"
#include "pangocoretext.h"
+#include "pango-impl-utils.h"
/* No extra fields needed */
typedef PangoEngineShape BasicEngineCoreText;
@@ -489,6 +490,9 @@ basic_engine_shape (PangoEngineShape *engine,
pango_coverage_unref (coverage);
g_slist_foreach (glyph_list, glyph_info_free, NULL);
g_slist_free (glyph_list);
+
+ if (analysis->level & 1)
+ pango_glyph_string_reverse_range (glyphs, 0, glyphs->num_glyphs);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]