gofpdf icon indicating copy to clipboard operation
gofpdf copied to clipboard

Arabic characters are not connected

Open HishamRamadan opened this issue 5 years ago • 2 comments

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.

HishamRamadan avatar Oct 31 '19 06:10 HishamRamadan

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?

jung-kurt avatar Oct 31 '19 11:10 jung-kurt

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

HishamRamadan avatar Nov 17 '19 08:11 HishamRamadan