Text on a path and SVG 1.2 compliancy

Asked by pietro on 2017-03-16

Hi

I've been trying to find out if the issue with text on a path or flowed text as mentioned in the FAQ (http://wiki.inkscape.org/wiki/index.php/Frequently_asked_questions#What_about_flowed_text.3F) has been solved yet. If not, which of the other vector-based formats supported by Inkscape does support text rendered along a path correctly when exporting a drawing ?

Question information

Language:
English Edit question
Status:
Solved
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Solved by:
pietro
Solved:
2017-03-23
Last query:
2017-03-23
Last reply:
2017-03-23
Hachmann (marenhachmann) said : #1

Hi Pietro,

text along path should be rendered correctly in other SVG viewers.

Can you post a file (upload to imgh.us or any file hoster of your choice, and post a link to it) that does not render the same in Inkscape / another SVG viewer? Which SVG viewer? Did you test with a current web browser, like Chrome or Firefox?

Inkscape's flowed text only renders correctly in Inkscape. If you want to know more about the development of the SVG 2.0 standard (which is supposed to contain flowed text, but might also be dropped - SVG 1.2 has been dropped), please see https://svgwg.org/svg2-draft/ .

Kind Regards,
 Maren

pietro (per-weisteen) said : #2

Hi Maren

Thanks for your reply.
My SVG file may be downloaded at http://www.weisteen.net/images/Text-on-path.svg

I've tried Firefox 52.0.1 (64-bit), Chrome 53.0.2785.116 (64-bit) and Gnome Image viewer (Eye of GNOME 3.18.2) without luck. All of them on Ubuntu 16.04.

Per

Hachmann (marenhachmann) said : #3

Hi Per,

the issue was with the file being *ancient*, it looks like it has been traced, and was originally created with sodipodi 0.32.

I've fixed it for you, because the steps involved in the fixing would have been difficult to describe here.
I have also removed a lot of cruft from it, I hope you didn't need it.
You may need to change the font, and then adapt the length of the (fully transparent!) paths where the text is put on.
You may also need to change the document's size.

Summary:
I've copied the contents into a new document.
Set up a separate layer for the text.
Re-created the paths for the text.
Re-wrote the text.
Replaced the blue background by something that fits.
Did a couple of boolops to remove the white gaps.
Combined a couple of shapes, and removed stuff that wasn't visible anyway.

The easiest option, though, which would have lost text editability, would have been to convert the text to paths. Path -> Object to Path.

One advice (in case that was you and not the original creator of the file): whenever possible, avoid the use of the bucket tool.

Find it here:
https://framadrop.org/r/1ZOVW_CIwx#6RSpCZJe4OlINoByJnK/57jyqzYN4+BoacN85C6ZzWI=
(the link is valid for 7 days)

Kind Regards,
 Maren

pietro (per-weisteen) said : #4

Wow !! I'm utterly impressed !! Thanks a thousand times !!

I can't now remember which version of Incscape i had installed when I started the drawing but probably installed a couple of years ago when running Ubuntu 14.x something. I upgraded to Incscape 0.92.1 a week ago hoping that would solve my path problem.

Again, thanks for the effort.

Best regards,
Per

Hachmann (marenhachmann) said : #5

You're welcome :)