Text on path with spaces causes an abort trap using cairosvg version 1.0.20 (current on PyPi)
Replicated using cairo
versions 1.14, 1.15, and current HEAD (e825f59
)
I'm uncertain if this is an upstream bug in cairo
...
In cairo
HEAD:
> cairosvg -o test.pdf test. svg
Assertion failed: (!scaled_font->cache_frozen), function _cairo_scaled_glyph_page_destroy, file cairo-scaled-font.c, line 459.
[1] 50892 abort cairosvg -o test.pdf test.svg
yields the above error message and produces no output
cairosvg -o test-no-spaces.pdf test-no-spaces.svg
works fine.
Daven,
If you are on a Mac (OS X), I think I have found a fix. It is Cairo which does not handle 'empty' glyphs correctly (on OS X). The fix I applied is to prevent rendering of spaces. It is in the current CairoSVG version.
Also see comment at: Kozea/CairoSVG#99
Cheers,
Erik