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
{{ message }}
Repository navigation
Gradient fill wrongly applied to color emojis in PDF output #8154
bugSomething isn't workingpdfRelated to PDF export or PDF embedding.upstreamIssues in dependencies.visualizeRelated to the visualize category, which is about drawing and illustrating
I've been meaning to open an issue for this too. I haven't investigated this further, but was suspecting a bug in how COLR glyphs are handled in krilla.
Hmm, can't reproduce this... Instead, for me it looks something like this:
This is because COLR has certain blend modes which aren't supported natively in PDF... Haven't figured out yet what the best way of supporting those is.
So there's a lot of variability in how renderers handle gradients and vector fonts.
Using Noto Color Emoji 2.051 (latest) and rendering the output of the following command:
typst c --font-path [bitmap or vector font dir] --ignore-system-fonts file.typ file.pdf
Some things that puzzle me:
Why Typst renders the vector font correctly while the hayro render tool doesn't (hayro 0.4.0 gives the same result). And it's really the vector font, I tried a 1200 ppi rendering and it looks good.
As mentioned, the fact that for COLR font the emoji is rendered black, is a bug in krilla. However, I fixed this yesterday, so it should be fixed in the next Typst release: LaurenzV/krilla#358
Regarding the gradient issue, given that Firefox/Chrome can handle it fine, I'm leaning towards it being a bug in Poppler and seemingly mupdf.
From left to right, this is: mupdf, ghostscript, PDFium, poppler, Apple Preview, PDFBox and Hayro. I also checked Adobe Acrobat and it renders fine there as well.
If you feel like it, feel free to report it to poppler as well!
In any case, I think we can close this issue once krilla has been bumped since there isn't more we can do from our side, apart from the fix that I linked above.
bugSomething isn't workingpdfRelated to PDF export or PDF embedding.upstreamIssues in dependencies.visualizeRelated to the visualize category, which is about drawing and illustrating
Activity
saecki commentedon Apr 22, 2026
I've been meaning to open an issue for this too. I haven't investigated this further, but was suspecting a bug in how COLR glyphs are handled in krilla.
LaurenzV commentedon Apr 22, 2026
Hmm, can't reproduce this... Instead, for me it looks something like this:
This is because COLR has certain blend modes which aren't supported natively in PDF... Haven't figured out yet what the best way of supporting those is.
sijow commentedon Apr 23, 2026
So there's a lot of variability in how renderers handle gradients and vector fonts.
Using Noto Color Emoji 2.051 (latest) and rendering the output of the following command:
Some things that puzzle me:
LaurenzV commentedon Apr 24, 2026
As mentioned, the fact that for COLR font the emoji is rendered black, is a bug in krilla. However, I fixed this yesterday, so it should be fixed in the next Typst release: LaurenzV/krilla#358
Regarding the gradient issue, given that Firefox/Chrome can handle it fine, I'm leaning towards it being a bug in Poppler and seemingly mupdf.
LaurenzV commentedon Apr 24, 2026
See also here:
From left to right, this is: mupdf, ghostscript, PDFium, poppler, Apple Preview, PDFBox and Hayro. I also checked Adobe Acrobat and it renders fine there as well.
LaurenzV commentedon Apr 24, 2026
I've reported it to mupdf: https://bugs.ghostscript.com/show_bug.cgi?id=709368
If you feel like it, feel free to report it to poppler as well!
In any case, I think we can close this issue once krilla has been bumped since there isn't more we can do from our side, apart from the fix that I linked above.
sijow commentedon Apr 24, 2026
Awesome, thanks! I reported it for poppler here: https://gitlab.freedesktop.org/poppler/poppler/-/work_items/1710 (copy-pasting your description, I hope you don't mind).