-
This issue got me thinking. I agree that this is 99.9% related to the font that is used. But I wanted to ask if there is any other possible explanation for unicode not working properly? For me, the Euro-sign and the "endash" work only in development (macOS) but not in production (heroku): I'm using Roboto Condensed throughout most of the PDF, which has a pretty good support for unicode. I noticed however, that the Euro-symbol in my generated PDF does not look like it should have. In the used font Roboto Condensed the symbol should have looked like the following, but it doesn't. I'm not just switching fonts anywhere as far as I can tell. Maybe the endash is also just a fallback but it's hard to tell. So, does prawn on macOS fall back to standard fonts when rendering unicode, but on ubuntu it does not? Is there an encoding setting in prawn that could have changed on another machine? Or could the file become corrupted at the time of the download? How can prawn fall back in one case but not in another? Is there any external library (outside of ruby) that could be out-of-sync between the environments? I'm having a hard time even explaining how this different rendering might occur. Thank you for your time! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Prawn doesn't depend on the operating system for fonts, it works the same everywhere. What may be different may be the font rendering on different operating system in case a font is not embedded in the PDF. However, since Prawn always embeds fonts this shouldn't be a problem. |
Beta Was this translation helpful? Give feedback.
Prawn doesn't depend on the operating system for fonts, it works the same everywhere. What may be different may be the font rendering on different operating system in case a font is not embedded in the PDF. However, since Prawn always embeds fonts this shouldn't be a problem.