Skip to content
This repository has been archived by the owner on Nov 13, 2021. It is now read-only.

Arabic characters are not connected #329

Open
HishamRamadan opened this issue Oct 31, 2019 · 2 comments
Open

Arabic characters are not connected #329

HishamRamadan opened this issue Oct 31, 2019 · 2 comments

Comments

@HishamRamadan
Copy link

HishamRamadan commented Oct 31, 2019

Hello,
First of all, thanks so much for the great library, it's awesome!

Currently I am using this font (https://fonts.google.com/specimen/Tajawal?selection.family=Tajawal). I downloaded the ".ttf" file, and use it as follows:

pdf.RTL()
pdf.AddUTF8Font("tajawal", "", "Tajawal-Regular.ttf")

The result is: ب س م ا ل ل ه ا ل ر ح م ن ا ل رح ي م
While it should be: بسم الله الرحمن الرحيم

Is there anything else I can do to be able to generate Arabic text? By the way, the Arabic text in the test-case ExampleFpdf_AddUTF8Font are generated in the same way (not connected), and I also tried different fonts, all lead to the same result.

@jung-kurt
Copy link
Owner

Is there anything else I can do to be able to generate Arabic text?

Unfortunately, I am out of my league here. @ArtemKor, do you have any insights?

@HishamRamadan
Copy link
Author

Thanks @jung-kurt for your reply.
@ArtemKor; Your kind help is really appreciated.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants