Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arabic characters in text-layer are not correct #9523

Closed
XiMiXgit opened this issue Mar 2, 2018 · 1 comment
Closed

Arabic characters in text-layer are not correct #9523

XiMiXgit opened this issue Mar 2, 2018 · 1 comment

Comments

@XiMiXgit
Copy link

XiMiXgit commented Mar 2, 2018

When I render a text-layer over a canvas the characters of the text-layer do not match exactly with the text rendered in the canvas.
Here I do not mean the position, but the content. So e.g. if I copy out the text, it is not exactly like the original text.

In the provided screenshot.png you can see both layers simultan. The dark text is the one rendered in the canvas, the light grey one is the text rendered in the text-layer.
I marked a position where the text differs.

When I examine the Byte-Stream of the document I see that there are from time to time short sequences where the order of the characters is in the wrong way. The first char is the last one.
There are also short sequences where there are complete different characters. For more details see file UnicodeCharComparring.txt

I think that this has to do something with arabic ligatures. But I am not sure because I am not confirm with the arabic language.

Appendix:

@Snuffleupagus
Copy link
Collaborator

Most likely fixed by PR #13424 (as far as I can tell not speaking Arabic, and without the issue clearly stating what page(s) the problem occur at).

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

No branches or pull requests

3 participants