Inkscape.org
Beginners' Questions text-on-path text-to-path?
  1. #1
    Jordan Jordan @EvilJordan

    Hoping someone can point me in the right direction, or confirm this isn't possible.

    Given this SVG (which renders as text-on-path, meaning the text's baseline is the defined path):

    <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 872.55 872.55">
    	<path id="signaturePath" fill="none" stroke="none" d="M117,435a318,318 0 1,0 636,0a318,318 0 1,0 -636,0" />
    	<text style='font-size: 1.25em; opacity: 0.75; font-family: monospace;'>
    		<textPath href="#signaturePath" startOffset='15%'>
    			SOME TEXT HERE
    		</textPath>
    	</text>
    </svg>

    I'd like to, using the command-line convert the text to paths:
    inkscape --export-plain-svg=converted.svg --export-text-to-path curveText.svg

    Unfortunately, while this does convert the text to paths, it does not keep the text placed ON the path; it just outputs paths in a straight line.

    Is the desired result achievable? If it matters, I'm usingΒ Inkscape 0.92.2 (5c3e80d, 2017-08-06) on an Amazon EC2 instance.

  2. #2
    Tyler Durden Tyler Durden @TylerDurdenβš–

    It seems the text is not on the path within Inkscape. (It appears to be on the path in a browser.)

  3. #3
    Jordan Jordan @EvilJordan
    πŸ‘
    TylerDurden

    It seems the text is not on the path within Inkscape. (It appears to be on the path in a browser.)

    This was actually extremely helpful! I actually installed the GUI and you were right! So, I fixed it in the GUI, saved as SVG, and started paring it down until I figured out what was going on.

    The solution is:Β <textPath xlink:href="#signaturePath" startOffset="15%">, xlink:href, not just href. It works!!

    Thank you so so much!!