William23668 8 Posted December 26, 2022 Hi Currently in the AddressBook sample app it display Arabic letters scrambled like ي ا ش ق So no possible way to display it correctly ? 1 Share this post Link to post
vfbb 285 Posted December 27, 2022 FMX does not natively support RTL. However, it is possible to use third-party libraries that enable RTL in FMX. Skia4Delphi is one of them: https://github.com/skia4delphi/skia4delphi#right-to-left 1 Share this post Link to post
William23668 8 Posted December 27, 2022 11 hours ago, vfbb said: FMX does not natively support RTL. However, it is possible to use third-party libraries that enable RTL in FMX. Skia4Delphi is one of them: https://github.com/skia4delphi/skia4delphi#right-to-left This mean I have to draw at canvas level inside each row in TListView ? ACanvas.DrawSimpleText('"Each dream that you', 2, 25, LFont, LPaint); Share this post Link to post
Sherlock 663 Posted December 27, 2022 No, it means you can install Skia4Delphi and use it in your project, and after following the steps pointed out to you, you can use "right to left" as originally expected. 1 1 Share this post Link to post
vfbb 285 Posted December 27, 2022 25 minutes ago, William23668 said: This mean I have to draw at canvas level inside each row in TListView ? ACanvas.DrawSimpleText('"Each dream that you', 2, 25, LFont, LPaint); Not! This part is exemplifying the direct use of the API. It's exactly like @Sherlock said, just replace the default FMX renderer with Skia's renderer ("GlobalUseSkia := True;" in your dpr). But there are a few more notes in the RightToLeft section in readme, which I've printed here: 2 1 Share this post Link to post
William23668 8 Posted December 27, 2022 (edited) This indeed solved the problem in very easy way thanks alot 😍 💐 Edited December 27, 2022 by William23668 2 Share this post Link to post
xorpas 4 Posted January 6, 2023 install fmxrtl FmxRtl or use this unit from see this forum arabic fmx 1 Share this post Link to post
William23668 8 Posted January 6, 2023 6 hours ago, xorpas said: install fmxrtl FmxRtl or use this unit from see this forum arabic fmx Thanks thats a hidean site ! I installed Download (for build 46141) hope this is correct 1 Share this post Link to post
xorpas 4 Posted January 7, 2023 (edited) directt link fmx rtl arabic I will put in the link a zip file containing three files Step 1: Go to C:\Program Files (x86)\Embarcadero\Studio\17.0\source\fmx Step 2: Copy everything in it to your project path Step3: Then copy the three files that I will give you and replace the existing ones Step 4: Press Shift+F11 from Delphi and select all the libraries that we have placed in your project path. The 5plan: bulid the program (note that you do not run, but do bulid). You will get an error message, but do not worry. Step 6: Delete all the libraries that we added from Delphi... From the right menu, select all libraries, then press delete. Step 7: Press Shift + F11 and add the following three libraries only FMX. FontGlyphs. Android. pas FMX. FontGlyphs. pas FMX. TextLayout. GPU Step 8: Run. you will get an Android application written in Arabic Edited January 7, 2023 by xorpas 1 Share this post Link to post