I want to generate some SVG info graphics/charts from Elixir. I got pretty excited about this when I found it. It's been a while, but back in the day, I did bindings for VisualWorks Smalltalk and really enjoyed Cairo. When generating SVG, I ran into a couple of problems, it seams that Text is actually not generating Text nodes in SVG? But instead is adding shape glyphs for letters. I think this is a side effect of Cairo itself? Is it possible to transcend this at all? Or is it just that text sucks with Cairo/SVG?
I found that Xairo.Text.extents() does not work with an SVGImage, I'm not sure entirely why that is. I seem to recall that text_extents() at the C level just takes a CR and returns the values.
I want to generate some SVG info graphics/charts from Elixir. I got pretty excited about this when I found it. It's been a while, but back in the day, I did bindings for VisualWorks Smalltalk and really enjoyed Cairo. When generating SVG, I ran into a couple of problems, it seams that Text is actually not generating Text nodes in SVG? But instead is adding shape glyphs for letters. I think this is a side effect of Cairo itself? Is it possible to transcend this at all? Or is it just that text sucks with Cairo/SVG?
I found that Xairo.Text.extents() does not work with an SVGImage, I'm not sure entirely why that is. I seem to recall that text_extents() at the C level just takes a CR and returns the values.