sammycage / plutosvg

Tiny SVG rendering library in C
MIT License
260 stars 18 forks source link

Gradient support #14

Closed tchayen closed 2 months ago

tchayen commented 2 months ago

Hi! I am trying to render Noto color emoji font. I thought I might have messed up something in my config, but then I checked the emoji2png example and I am noticing the same issues.

This is reference emoji:

Screenshot 2024-08-24 at 12 32 59

And this is after rendering with emoji2png (this font, character 0x1F973):

emoji-1f973

_If this helps, the original SVG file from the repo is here._

I guess this means that either plutovg or plutosvg don't support the kind of gradient used here. Is this something you would consider looking into? Or should I use lunasvg for this?

sammycage commented 2 months ago

@tchayen Thank you for bringing this to my attention! I appreciate the detailed comparison and the references you provided. I'll definitely investigate this issue to see if it's related to gradient support in plutovg or plutosvg. I'll keep you updated on any findings.

sammycage commented 2 months ago

@tchayen I've fixed this issue in the latest update. If you're using it for rendering OpenType-SVG fonts, PlutoSVG is a great choice.

tchayen commented 2 months ago

Thank you so much for fixing this issue so quickly! I just checked and my problem is gone.

I am using PlutoSVG for OT SVG support and indeed I am very happy with it! Thank you for this great library!