Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delphi XE5 right to left languages don't appear as they should in android

as the title says , a text from a RTL language like persian or arabic doesnt show well in android for example the word "سلام" shows as "م ا ل س". this problem happens even in text inputs (which i thought they were native and native android textboxes support that) is there a way to fix this?

like image 244
Adib Faramarzi Avatar asked Sep 18 '13 22:09

Adib Faramarzi


1 Answers

Lack of Bidirectional and Glyph Shaping support is a known restriction of the FireMonkey platform, on all targets (including Windows and Mac OSX).

We will have to wait for "native controls" for Android as third party components for FireMonkey, as it does exists for iOS - see http://www.tmssoftware.com/site/tmsicl.asp for instance.

I've found this great blog article with source code about Android Native controls for Lazarus/FreePascal which is quite interesting. But this won't work with the "NextGen" Delphi compiler, which is currently going in a diverse direction in respect to FPC (e.g. with the ObjectivePascal mode).

enter image description here

Since it uses native Android controls, it should not suffer from the same restrictions as FireMonkey do.

like image 153
Arnaud Bouchez Avatar answered Sep 18 '22 15:09

Arnaud Bouchez