You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In various applications such as web browsers, IDEs, and others, when we copy text from any language and paste it, the text is rendered correctly without needing to change the font family. This functionality works seamlessly regardless of the language of the text. But, it is not working as such in PDFs. Could someone explain how this mechanism works and how we can achieve similar behavior in OpenPDF? Specifically, I need to render text that contains words and letters from various languages(unknown to me as well) accurately into a PDF.
I have attempted to use FontSelector by adding the font family of each language and processing the text. Unfortunately, many fonts process characters from other languages incorrectly, rendering them as "????" or breaking the glyphs and producing incorrect output. For example, if my font processor includes English, Hindi, and Telugu languages fonts, and the given string contains Telugu text, the Hindi font might process it first, resulting in incorrect rendering or placeholder characters.
I am seeking detailed knowledge about how fonts, internationalization, and UTF, encodings work in this context. So, I would appreciate any guidance or resources that can help address these issues.
Thank you in advance for your assistance.
The text was updated successfully, but these errors were encountered:
In this post, the end solution was to either use a fontSelector or a universal font. If the fontSelector is not working for your case, as you described in your post, I would recommend Lonzak's solution of using a universal font.
Another solution would be to replace those fonts that are producing unintended results
However, if you were to go into more detail about what font/encoding/character is causing this issue, I would be more than happy to look further into this issue
In various applications such as web browsers, IDEs, and others, when we copy text from any language and paste it, the text is rendered correctly without needing to change the font family. This functionality works seamlessly regardless of the language of the text. But, it is not working as such in PDFs. Could someone explain how this mechanism works and how we can achieve similar behavior in OpenPDF? Specifically, I need to render text that contains words and letters from various languages(unknown to me as well) accurately into a PDF.
I have attempted to use FontSelector by adding the font family of each language and processing the text. Unfortunately, many fonts process characters from other languages incorrectly, rendering them as "????" or breaking the glyphs and producing incorrect output. For example, if my font processor includes English, Hindi, and Telugu languages fonts, and the given string contains Telugu text, the Hindi font might process it first, resulting in incorrect rendering or placeholder characters.
I am seeking detailed knowledge about how fonts, internationalization, and UTF, encodings work in this context. So, I would appreciate any guidance or resources that can help address these issues.
Thank you in advance for your assistance.
The text was updated successfully, but these errors were encountered: