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
We use the library to generate reports for various customers, one uses Korean script for the report text. Although the text in Korean renders in the browser fine with an HTML report, it fails to render Korean text in PDF.
The issue comes down most probably to the use of the font called Source Sans Pro which is shipped with the library. It seems that the browser falls back to some default font which renders the Korean script fine, but when PDF is generated, it forces the Source Sans Pro, and renders blank space instead.
Now, what would be the best way to sort this issue out? Should the library come with a more feature-rich font? Or what would be the way to change the font?
I tried embedding a new font in the CSS file for the report, and overwriting the font-family, but for some reason, it renders the whole PDF document in a totally different font (DejaVu Serif), and neither Source Sans Pro nor my new font is part of the PDF document. HTML file however worked just fine.
We use the library to generate reports for various customers, one uses Korean script for the report text. Although the text in Korean renders in the browser fine with an HTML report, it fails to render Korean text in PDF.
The issue comes down most probably to the use of the font called Source Sans Pro which is shipped with the library. It seems that the browser falls back to some default font which renders the Korean script fine, but when PDF is generated, it forces the Source Sans Pro, and renders blank space instead.
Now, what would be the best way to sort this issue out? Should the library come with a more feature-rich font? Or what would be the way to change the font?
I tried embedding a new font in the CSS file for the report, and overwriting the font-family, but for some reason, it renders the whole PDF document in a totally different font (DejaVu Serif), and neither Source Sans Pro nor my new font is part of the PDF document. HTML file however worked just fine.
The text was updated successfully, but these errors were encountered: