diff options
Diffstat (limited to 'modules/arabic/arabic-fc.c')
-rw-r--r-- | modules/arabic/arabic-fc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/arabic/arabic-fc.c b/modules/arabic/arabic-fc.c index c311504b..5765982b 100644 --- a/modules/arabic/arabic-fc.c +++ b/modules/arabic/arabic-fc.c @@ -95,6 +95,7 @@ arabic_engine_shape (PangoEngineShape *engine, gunichar *wcs; const char *p; int cluster = 0; + gboolean rtl = analysis->level % 2 != 0; int i; g_return_if_fail (font != NULL); @@ -108,13 +109,13 @@ arabic_engine_shape (PangoEngineShape *engine, return; buffer = pango_ot_buffer_new (fc_font); - pango_ot_buffer_set_rtl (buffer, analysis->level % 2 != 0); + pango_ot_buffer_set_rtl (buffer, rtl); pango_ot_buffer_set_zero_width_marks (buffer, TRUE); wcs = g_utf8_to_ucs4_fast (text, length, &n_chars); properties = g_new0 (gulong, n_chars); - Arabic_Assign_Properties (wcs, properties, n_chars); + Arabic_Assign_Properties (wcs, properties, n_chars, !rtl); g_free (wcs); |