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
When I generate PDF from HTML files that contain emojis, emojis are embedded as raster images in the output.
E.g. when I use an HTML file with the below text as input,
Before installing an emoji font, the emojis were, of course, not displayed in the output. But after installing Noto Color Emoji, they are displayed as shown in the example.
We rely on Cairo to generate the PDF file, and Cairo only supports emojis as PNG files included in font files. Vector emojis included in fonts (SVGinOT) are actually only supported by a very small amount of applications (mainly Firefox, Edge and Photoshop, see twemoji-color-font about that. As far as I know, Noto Color Emoji only contains raster emojis.
But you’re right, Cairo doesn’t do a very good job when generating PDF files with colored emojis. They’re probably downscaled for some reason, as if they were rendered on a low-density raster surface. I don’t know if there’s a way to fix that 😒.
The current master branch, that doesn’t rely on Cairo, doesn’t support colored emojis. When we’ll add the support of colored emojis back, we’ll try to 1) support vector emojis, and 2) use large raster images.
Hi.
When I generate PDF from HTML files that contain emojis, emojis are embedded as raster images in the output.
E.g. when I use an HTML file with the below text as input,
I get the following PDF as output: out.pdf.
Before installing an emoji font, the emojis were, of course, not displayed in the output. But after installing Noto Color Emoji, they are displayed as shown in the example.
My output for
weasyprint -i
is the following:Any ideas why this happens?
The text was updated successfully, but these errors were encountered: