2007-12-05 Behdad Esfahbod <behdad@gnome.org>
Bug 501938 – Arabic shaping broken with vertical layout with
vertical-hint=line
* modules/arabic/arabic-fc.c (arabic_engine_shape): Take gravity into
equation when deciding whether to shape visually or logically.
svn path=/trunk/; revision=2516
2007-12-05 Behdad Esfahbod <behdad@gnome.org>
+ Bug 501938 – Arabic shaping broken with vertical layout with
+ vertical-hint=line
+
+ * modules/arabic/arabic-fc.c (arabic_engine_shape): Take gravity into
+ equation when deciding whether to shape visually or logically.
+
+2007-12-05 Behdad Esfahbod <behdad@gnome.org>
+
* pango-view/viewer-pangocairo.c (render_callback): Fix assertion
in pango_gravity_get_rotation().
const char *p;
int cluster = 0;
gboolean rtl = analysis->level % 2 != 0;
+ gboolean reverse;
int i;
g_return_if_fail (font != NULL);
wcs = g_utf8_to_ucs4_fast (text, length, &n_chars);
properties = g_new0 (gulong, n_chars);
- Arabic_Assign_Properties (wcs, properties, n_chars, !rtl);
+ reverse = !rtl ^ (analysis->gravity == PANGO_GRAVITY_NORTH || analysis->gravity == PANGO_GRAVITY_WEST);
+ Arabic_Assign_Properties (wcs, properties, n_chars, reverse);
g_free (wcs);