jonathancrabtree / Circleator

Flexible circular visualization of genome-associated data with BioPerl and SVG.
Other
46 stars 8 forks source link

Labels not showing up #27

Closed dkoslicki closed 8 years ago

dkoslicki commented 8 years ago

Following the instructions for example 1, the resulting svg file does not display the labels (like 0.4 Kb, etc.).

jonathancrabtree commented 8 years ago

Do the labels show up when you rasterize the SVG to PNG or JPEG using the Apache Batik tools? If so then whatever tool you're using to view the SVG document may lack support for rendering text along a path. This was definitely the case in some older browsers, although if you have an up-to-date browser the SVG support is generally pretty good (except Safari where for some reason it is still very very slow!) You can also examine the SVG directly in a text editor and check to see whether the label text appears in the document.

dkoslicki commented 8 years ago

Yup, that appears to have fixed it! Just for the record, I was using rasterize-svg before fixing it with libbatik-java. Thanks Jonathan

jonathancrabtree commented 8 years ago

That's interesting...so you're saying that the default system rasterizer command (a reference to which is hard-coded in rasterize-svg) couldn't handle text on paths? Can you tell me what O/S this was on?

dkoslicki commented 8 years ago

Argh, I typed too quickly. I was not using rasterize-svg before, I was using rsvg-convert as the system rasterizer (from Ubuntu 14.04.3's librsvg2-bin). Sorry for the confusion.

jonathancrabtree commented 8 years ago

OK, thanks!