numbers are reversed in rtl strings
Hello, i am trying to draw some rtl text (hebrew) using the drawText() function. i embedded a custom font, but in the final pdf, the numbers in the string (if exist) are getting reversed, and only the numbers, the hebrew text is fine, for ex: "בלה בלה 1234" will be draw as "בלה בלה 4321". i there a simple solution to this issue? Thanks, Ori
Hello @oridavidov!
Apologies for the late response. I'm afraid I don't fully understand what is going on from the information you've provided. If you're still having trouble, please reopen this issue with some code and fonts that I can use to reproduce the problem.
hey getting this error too, how do you solve it?
@Hopding this issue still remains. To reproduce:
form.getTextField(field.name).setText(value);
set value to "כתובת 12345"
It will set the field value correctly, but once you call form.updateFieldAppearances(font);
the value prints with the digits backwarded: "כתובת 54321"
It's just "Address 12345" resulting in "Address 54321".
Tests:
- Several different fonts - Fail.
- Hebrew with no spaces - Fail
- Same font but in English - OK.
- Hebrew but only digits(no text e.g. "12345") - OK.
Fonts used: Open serif
I briefly went over the code and couldn't find the reason, tried exploring the fontkit as well but no success.
@zeev-js Any progress with this? How did you solve the issue?