4 ms·
Stunning. Already supports all popular font types, image types, and SVG.
by tomcam 5y ago
Stunning. Already supports all popular font types, image types, and SVG.
- elcritch 5y agoNot to mention operations like "complex blends: Darken, Multiply, Color Dodge, Hue, Luminosity... etc" and many SIMD accelerations. It also has Node, Python, and C interfaces. Though I haven't found an excuse to use it yet. Surely there's got to be some excuse... ;)
- RazrFalcon 5y agoIf you're looking for a small, fast CPU-based 2D library, you might be interested in https://github.com/RazrFalcon/tiny-skia https://github.com/RazrFalcon/tiny-skia Just like Skia, all pixel accesses is SIMD accelerated. It doesn't have C bindings, but they can be trivially implemented.
- elcritch 5y agoAh, that's the thing.. I don't have a reason/need for using a fast 2d library. It's that Pixie's Nim API makes me want to have a reason. Like maybe it'd be fun to write a modern plotting backend with it! Currently even one of Julia-lang's best plot backends uses a C-based plotting library, GR [1]. It's a pain to use from raw C bindings though. :/ Also while Rust is great, I'm too lazy to program in it. All them `& mut<RC<box<mything>>` things. ;) (Yes I know that's not real Rust code...) Though tiny-skia does look like a well done library! 1: https://gr.readthedocs.io/ https://gr.readthedocs.io/
- jahewson 5y agoIt’s really great work. The font support is a bit behind the times though, and text shaping is non-existent. I see so many libraries fall at that hurdle, they think they can do it themselves then when they realise it’s hard and requires a team of people they either abandon it or tell you to use harfbuzz without the necessary integration points. Hopefully that won’t be the case here!
- sanxiyn 5y agoRust managed to get text shaping (https://github.com/RazrFalcon/rustybuzz https://github.com/RazrFalcon/rustybuzz), you can certainly do it yourself but it's just a lot of work...
- deleted 5y ago[deleted]
- treeform 5y agoI agree shaping is hard. But so is a lot of other things we have done. We will just take it one setup at a time. I am sure with time we will conquer shaping as well.
- RattleyCooper 5y agoI don't think treeform and guzba will have much trouble, honestly.
- RodgerTheGreat 5y agoDug into the source for the GIF decoder a bit and it looks like it only supports the most basic features- no windowing, animation, local colortables, or background colors. I suspect many optimized static GIFs won't decode correctly. Still, everything has to start somewhere!
- treeform 5y agoWe did not really "need" a GIF decoder but it was a fun thing to make. It can decode many many gifs, but yes its still missing features. I hope to get to them though eventually.
- Guzba 5y agoSVG support has been really helpful for me to see a diverse and "real world" set of rendering results when working on Pixie. And for testing it's great to be able to grab huge sets of open source SVG files and check our results. For example, I have a few "megatests" where I render entire icon sets or emoji sets such as https://raw.githubusercontent.com/treeform/pixie/master/tests/images/svg/twemoji.png https://raw.githubusercontent.com/treeform/pixie/master/test... and https://raw.githubusercontent.com/treeform/pixie/master/tests/images/svg/flat-color-icons.png https://raw.githubusercontent.com/treeform/pixie/master/test... Running these tests helps me feel more confident that changes I'm making are not breaking things.
- RazrFalcon 5y agoI'm sure you will be interested in https://github.com/RazrFalcon/resvg-test-suite https://github.com/RazrFalcon/resvg-test-suite From a quick glance, pixie should pass 10-20% of those tests. Yes, SVG is that complex.