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

Incorrect Arabic text rendering when using Arabic font as fallback in PDF export #1743

Open
1 of 5 tasks
erwamartin opened this issue Sep 18, 2024 · 0 comments · May be fixed by #1744
Open
1 of 5 tasks

Incorrect Arabic text rendering when using Arabic font as fallback in PDF export #1743

erwamartin opened this issue Sep 18, 2024 · 0 comments · May be fixed by #1744
Labels
bug Something isn't working needs triage

Comments

@erwamartin
Copy link

Describe the bug
Hello,
My Dart app is primarily used by English-speaking users, but we also support multiple languages, including Arabic. We've encountered an issue where, when the Arabic font is used as a fallback, the exported PDF renders Arabic characters incorrectly. The characters are spaced apart and do not appear connected as they should in the Arabic script.

However, when the Arabic font is set as the main font, the rendering works perfectly, and the text appears as expected.

To Reproduce

  1. Generate a PDF that contains Arabic text using an Arabic font as a fallback (not as the main font).
  2. Observe the output where Arabic characters are not correctly rendered (characters are spaced apart).

Expected behavior
The output should render Arabic text correctly, whether the Arabic font is used as a fallback or as the main font.

Screenshots
Arabic font as fallback:
image

Arabic font as main font
image

Desktop (please complete the following information):

  • iOS
  • Android
  • Browser
  • Windows
  • Linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
1 participant