--- src/libnrtype/Layout-TNG-Compute.cpp 2013-04-15 06:00:32 +0000 +++ src/libnrtype/Layout-TNG-Compute.cpp 2013-06-27 11:35:49 +0000 @@ -246,8 +246,13 @@ { span->setZero(); - if (span->start.iter_span->dx._set && span->start.char_byte == 0) - span->width += span->start.iter_span->dx.computed; + if (span->start.iter_span->dx._set && span->start.char_byte == 0) { + if (para.direction == RIGHT_TO_LEFT) { + span->width -= span->start.iter_span->dx.computed; + } else { + span->width += span->start.iter_span->dx.computed; + } + } if (span->start.iter_span->pango_item_index == -1) { // if this is a style-only span there's no text in it