summaryrefslogtreecommitdiff
path: root/modules/thai/thai-fc.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/thai/thai-fc.c')
-rw-r--r--modules/thai/thai-fc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/thai/thai-fc.c b/modules/thai/thai-fc.c
index 66dccbb4..80c945da 100644
--- a/modules/thai/thai-fc.c
+++ b/modules/thai/thai-fc.c
@@ -32,6 +32,7 @@
#include <glib.h>
#include "pango-ot.h"
+
#include "pango-engine.h"
#include "pangofc-font.h"
@@ -298,6 +299,7 @@ thai_engine_shape (PangoEngineShape *engine G_GNUC_UNUSED,
thai_set_glyphs (font_info, text, length, analysis->script, glyphs);
buffer = pango_ot_buffer_new (PANGO_FC_FONT (font));
+ pango_ot_buffer_set_rtl (buffer, analysis->level % 2 != 0);
for (i = 0; i < glyphs->num_glyphs; i++)
pango_ot_buffer_add_glyph (buffer,