Aboghazala / AwesomeTkinter

Pretty tkinter widgets
MIT License
101 stars 7 forks source link

Font is not changing after using render_text() for arabic fonts #14

Open joo77 opened 2 years ago

joo77 commented 2 years ago

I'm trying to use an Arabic font called "Scheherazade New" to show Arabic label. the label always shows the standard system default font. Any suggestions to try?... please see the attached. This was tested on both Windows and Linux. issue

bvegetas commented 1 year ago

Seems that the problem is associated with the font you choose. I made a sample font myself and it refuses to display bidirectional text in my font, but other open source fonts, like Noto Sans Arabic, HarmonyOS Sans Naskh Arabic, or Estedad, seem to work well with awesometkinter.bidirender.

Aboghazala commented 1 year ago

very quick look into 'scheherazade' font by font forge shows that the arabic glyphs belong to Farsi unicode subsets, unfortunately awesometkinter.bidirender support only Arabic Presentation Forms-B of unicode letters, thats why this font doesn't work properly