[open] Farsi fonts display
I am using the latest version of OpenSesame. I need to have both the instructions and the word stimuli in Farsi. The Farsi font is selected in the relevant combo box but the outcome is squares instead of letters. In addition, after trying different Arabic fonts, The letters are showed detached but not continues and from the left to right.
Any advice is much appreciated.

Comments
Regarding the showing of squares instead of characters, Lotje's explanation from this discussion should work in principle. Could you be more specific as to what happens exactly? Do you see boxes in the GUI as well, or just during the experiment? What back-end are you using? And are you sure the selected font contains Farsi characters?
Regarding the direction of writing, OpenSesame does indeed not take into account the correct direction. Please see this discussion for a script-based workaround:
Cheers!
Check out SigmundAI.eu for our OpenSesame AI assistant!
Thanks !The inline script works well. The direction is corrected now but the fonts are displayed in capital letters. As you may know, in Farsi, like Arabic, the letters are continues and small. Do you think if this could be fixed too?
Masoud
Hi Masoud,
I'm afraid that I cannot offer much help here, as my understanding of non-western alphabets is essentially zero. I can blindly manipulate text strings (such as reversing them), but I have no idea whether the outcome makes sense.
Edit: This suggests that rendering Arabic fonts with PyGame is inherently problematic. However, they also provide a link to another library, which may be worth checking out.
Perhaps you could experiment a bit with the PyGame font rendering (which is what is used for the legacy and xpyriment back-ends), to see whether you can get things to display properly this way? If you succeed, you can share your findings here, and I can hopefully use this to improve this aspect of OpenSesame. For example, the script below (assuming the legacy back-end) shows a simple string of text using the PyGame functions directly:
See also
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!