From fb05e0df72761cc2b2135d879feebd8c474f0d18 Mon Sep 17 00:00:00 2001 From: Dekel Tsur Date: Fri, 19 Jul 2002 12:52:36 +0000 Subject: [PATCH] Fix Arabic text rendering. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4708 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 4 ++++ src/text.C | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 44fbf65555..bc8207dc14 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2002-07-19 Dekel Tsur + + * text.C (drawChars): Fix Arabic text rendering. + 2002-07-18 John Levon * LyXAction.C: diff --git a/src/text.C b/src/text.C index d85417f577..9392cb5913 100644 --- a/src/text.C +++ b/src/text.C @@ -630,6 +630,8 @@ void LyXText::drawChars(DrawRowParams & p, pos_type & vpos, if (orig_font != getFont(p.bv->buffer(), p.row->par(), pos)) break; + if (arabic) + c = transformChar(c, p.row->par(), pos); str += c; ++vpos; } @@ -676,7 +678,7 @@ bool LyXText::draw(DrawRowParams & p, pos_type & vpos) if ((!hebrew && !arabic) || (hebrew && !Encodings::IsComposeChar_hebrew(c)) || (arabic && !Encodings::IsComposeChar_arabic(c))) { - drawChars(p, vpos, true, false); + drawChars(p, vpos, hebrew, arabic); } else if (hebrew) { drawHebrewComposeChar(p, vpos); } else if (arabic) {