From da7e52cd47dc43a6c8b535cf153395abce99f440 Mon Sep 17 00:00:00 2001 From: William Kendrick Date: Wed, 14 Jan 2009 19:09:45 +0000 Subject: [PATCH] Shai Ayal says: "It looks like the line should be: FriBidiCharType baseDir = FRIBIDI_TYPE_WL; after compilation (on linux) it looks to be working -- both Latin and Hebrew look right. I think the "weak" baseDir means fribidi assumes a LTR paragraph unless it's only RTL characters, in which case it assumes RTL paragraph. So if writing in Latin only there should be no problems, and if writing in Hebrew only, also no problems, and if mixing than you get the behavior that current cvs has, which is also OK." --- src/tuxpaint.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index cbaed91ef..0abef8820 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -15499,7 +15499,8 @@ static void do_render_cur_text(int do_blit) if (texttool_len > 0) { #if defined(_FRIBIDI_H) || defined(FRIBIDI_H) - FriBidiCharType baseDir = FRIBIDI_TYPE_LTR; + //FriBidiCharType baseDir = FRIBIDI_TYPE_LTR; + FriBidiCharType baseDir = FRIBIDI_TYPE_WL; /* Per: Shai Ayal , 2009-01-14 */ FriBidiChar *unicodeIn, *unicodeOut; unsigned int i;