summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2012-01-18 21:53:00 -0500
committerBehdad Esfahbod <behdad@behdad.org>2012-01-18 21:53:00 -0500
commit4717a185539d678b2040820e05bfe065d5d7c16d (patch)
treec231bcd0ae1bb5b743fd91574789f766800830dc
parent14899adc1891890299b76c4d9dc0ff8583227741 (diff)
Fix RTL GPOS issue
Reported in Oct 2011 to the mailing list by John Tapsell and confirmed by Khaled Hosny. https://bugreports.qt.nokia.com//browse/QTBUG-4475 http://lists.freedesktop.org/archives/harfbuzz/2011-January/001062.html
-rw-r--r--src/harfbuzz-shaper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/harfbuzz-shaper.cpp b/src/harfbuzz-shaper.cpp
index ce4d4ac..7d433ea 100644
--- a/src/harfbuzz-shaper.cpp
+++ b/src/harfbuzz-shaper.cpp
@@ -1263,7 +1263,7 @@ HB_Bool HB_OpenTypePosition(HB_ShaperItem *item, int availableGlyphs, HB_Bool do
// (int)(positions[i].x_pos >> 6), (int)(positions[i].y_pos >> 6),
// positions[i].back, positions[i].new_advance);
- HB_Fixed adjustment = (item->item.bidiLevel % 2) ? -positions[i].x_advance : positions[i].x_advance;
+ HB_Fixed adjustment = positions[i].x_advance;
if (!(face->current_flags & HB_ShaperFlag_UseDesignMetrics))
adjustment = HB_FIXED_ROUND(adjustment);