I decided to support TinyVG after all
-
Update 3: Update 2 was wrong, and boy am I glad to be wrong. Turns out I was misinterpreting a niggling little detail of the spec. Once i fixed that, my code rendered my test documents. Update 2: I can't support TinyVG without tearing apart my rasterizer. It uses even-odd rule even when elements overlap. My rasterizer doesn't. Mine is more compatible with the way SVG and Truetype do things. TinyVGs method is one off, but I'm not inclined to try to hack it apart to support both. :doh: :( Update: I've got TVG partially working. It's rendering some documents but not others. I think it's funny that my much more complicated SVG code works better than the one that renders the simple TVG format. _________________________________________________________________________ TVG is a compact, simplified vector graphics file format. After speaking with the author of TinyVG[^] it's not as vaporwarey as I thought. You can turn SVGs into TVGs by first running the SVG through a 3rd party tool called SVGO. I've got an initial render (imperfect) in TVG now, so my code is working somewhat. Currently the reference implementation provided by the author is in Zig, which is unfortunate, since it's a reference implementation and Zig is still a boutique language. I intend to provide the author a couple of things. 1. A reference implementation, probably in C 2. A better SVG->TVG conversion tool that doesn't require running things though SVGO first. But first I need to perfect my TVG support and wrap up my htcw_gfx 2.0 release. I'm feeling pretty good about this.
Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix
-
Update 3: Update 2 was wrong, and boy am I glad to be wrong. Turns out I was misinterpreting a niggling little detail of the spec. Once i fixed that, my code rendered my test documents. Update 2: I can't support TinyVG without tearing apart my rasterizer. It uses even-odd rule even when elements overlap. My rasterizer doesn't. Mine is more compatible with the way SVG and Truetype do things. TinyVGs method is one off, but I'm not inclined to try to hack it apart to support both. :doh: :( Update: I've got TVG partially working. It's rendering some documents but not others. I think it's funny that my much more complicated SVG code works better than the one that renders the simple TVG format. _________________________________________________________________________ TVG is a compact, simplified vector graphics file format. After speaking with the author of TinyVG[^] it's not as vaporwarey as I thought. You can turn SVGs into TVGs by first running the SVG through a 3rd party tool called SVGO. I've got an initial render (imperfect) in TVG now, so my code is working somewhat. Currently the reference implementation provided by the author is in Zig, which is unfortunate, since it's a reference implementation and Zig is still a boutique language. I intend to provide the author a couple of things. 1. A reference implementation, probably in C 2. A better SVG->TVG conversion tool that doesn't require running things though SVGO first. But first I need to perfect my TVG support and wrap up my htcw_gfx 2.0 release. I'm feeling pretty good about this.
Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix
honey the codewitch wrote:
But first I need to
"... crush your my enemies, see them driven before you me, and hear the lamentations of their women"
-
honey the codewitch wrote:
But first I need to
"... crush your my enemies, see them driven before you me, and hear the lamentations of their women"
-
That'll be old Genghis
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
[Conan The Barbarian: What is best in life...? - YouTube](https://www.youtube.com/watch?v=\_XUu3\_pLPUE)
"A little song, a little dance, a little seltzer down your pants" Chuckles the clown