Open mohammed-bahumaish opened 1 year ago
Writing Arabic text line with numbers.
I embedded a custom font like the following https://github.com/Hopding/pdf-lib#fonts-and-unicode.
When an Arabic text line has numbers like سعر 12345
سعر 12345
What gets generated in the pdf is سعر 54321 numbers gets reversed.
سعر 54321
live demo
Embeding Arabic font like https://github.com/Hopding/pdf-lib#fonts-and-unicode. Then generate a pdf with Arabic text and numbers سعر 12345 by page.drawText
page.drawText
1.17.1
Browser
No response
Same issue here? Any solution?
Did anyone find a solution for that?
any solution?
What were you trying to do?
Writing Arabic text line with numbers.
How did you attempt to do it?
I embedded a custom font like the following https://github.com/Hopding/pdf-lib#fonts-and-unicode.
What actually happened?
When an Arabic text line has numbers like
سعر 12345
What did you expect to happen?
What gets generated in the pdf is
سعر 54321
numbers gets reversed.How can we reproduce the issue?
live demo
Embeding Arabic font like https://github.com/Hopding/pdf-lib#fonts-and-unicode. Then generate a pdf with Arabic text and numbers
سعر 12345
bypage.drawText
Version
1.17.1
What environment are you running pdf-lib in?
Browser
Checklist
Additional Notes
No response