jsPDF
                                
                                 jsPDF copied to clipboard
                                
                                    jsPDF copied to clipboard
                            
                            
                            
                        Alignment issue with Arabic text
Heya, I'm working on an app that needs to generate PDFs with occasional arabic text in it, and I'm trying to figure out what the best way to do it is.
By looking at the occasional issues in this repo I've managed to gather together most of what I need, but one thing seems to still be going wrong. I'm aligning to the right, but it seems the text starts at random offsets.

I've made a code sandbox to illustrate the problem.
It is worth noting that doing the same with hebrew text and a hebrew-compatible font seems to work fine, so it's definitely something with arabic that's messing it up. I've tried it with different fonts, but no luck, and the documentation around RTL and options like isInputRtl and isInputRtl is non-existent :(
Am I doing something wrong, or have I stumbled upon an issue with the library?
This issue is stale because it has been open 90 days with no activity. It will be closed soon. Please comment/reopen if this issue is still relevant.
Yep, still relevant. There's other issues with arabic as well. It would be really good if you could take a deeper look at arabic support. I think my company would actually want to sponsor this at this point.
I currently don't have the time to look into these issues. But I will happily merge pull requests ;)
This issue is stale because it has been open 90 days with no activity. It will be closed soon. Please comment/reopen if this issue is still relevant.
In version 2.5.1, I'm seeing the same problem with Arabic and the same success with Hebrew. Calling setR2L doesn't help--it just reverses the string.