[ft] [freetype] Bidirectional text ( arabic) glyph x advance
From:
joseph t
Subject:
[ft] [freetype] Bidirectional text ( arabic) glyph x advance
Date:
Mon, 17 May 2010 15:54:36 +0530
Hi
We are using freetype with proprietary layout engine to render arabic and English characters. The font file used is ttf.
Arabic text is written from right to left. When two Arabic characters are typed , the glyph advance x position for the text typed (original text before reshaping) is determined using freetype get glyph routine.
At the time of drawing, the Arabic reshaping library determines the reshaped arabic text to be drawn. The reshaped arabic text width is lesser than the original text typed (unreshaped) but it is drawn at the original x advance. As per our observation this is resulting in empty space getting appended at the end of reshaped text.
Could you please let us know how this can be corrected.