Fix for sales PDFs to support more characters#13016
Fix for sales PDFs to support more characters#13016magento-engcom-team merged 3 commits intomagento:2.2-developfrom
Conversation
|
Hi @rossmc! Thanks for your contribution. I really like the PR, let me check internally about the font you choose and I'll report back! |
|
Thanks @miguelbalparda Actually, I don't think the Noto font I chose is the best. Noto doesn't support all writing systems with a single font file, but rather with a collection of different font files. Their docs point out...
I think a better alternative is GNU Free Font which supports much more writing systems. There could be others, like Arial. But GNU Free Font is the best I could find. I updated this PR to use the GNU Free Font instead. |
…o bugfix/pdf-font-to-support-more-characters
|
Hi @rossmc , I will request information regarding font license and come back with updates. |
|
Arabic chars separated 2.1.5 |
|
I think we should remove Zen_pdf totally as it'not supported and replace it with other php libraries that creates pdf from html/css. The still exist with Unicode languages especially Arabic letters are displayed separated and reversed |
|
Hi @rossmc. Thank you for your contribution. |
Description
The sales PDFs use the Libertine font which is not a unicode font and therefore it does not have full support of characters. It does not support Arabic, Russian, Greek, Indian or Thai alphabets and many more. For example it does not support the Indian ruppe currency symbol ( ₹ ) and displays tofu boxes instead, which makes the PDF invoice totals illegible.
It's better if we use a unicode font to support more languages and characters. So I've added the open source Noto-Serif font to fix this issue.
Fixed Issues (if relevant)
Manual testing scenarios
Contribution checklist