Is it possible to put the text in the PATH in this case ?

Post questions on how to use or achieve an effect in Inkscape.
dubis
Posts: 7
Joined: Fri Feb 26, 2016 12:25 am

Is it possible to put the text in the PATH in this case ?

Postby dubis » Tue Apr 17, 2018 11:04 pm

Hi,

I would to replace the line of the half brain sketch by "0000101" text.

IS it possible ? I put an attached file

Thanks for helping.
Attachments
AI numeric.svg
(15 KiB) Downloaded 192 times

User avatar
prkos
Posts: 1625
Joined: Tue Nov 06, 2007 8:45 am
Location: Croatia

Re: Is it possible to put the text in the PATH in this case ?

Postby prkos » Wed Apr 18, 2018 3:22 am

Does it have to be the exact text object you have in the file with three lines? And shorter text object for shorter lines?

I think you can do it more or less easily with Text > Put on Path.
http://tavmjong.free.fr/INKSCAPE/MANUAL ... -Path.html

First you need to do some work on your "brain". Trace its "lines" to get an open-ended paths along all the edges where you want your text to sit. Then use a normal Text object (not the Flowed text you have now) and put a dupicate on each path, delete numbers if it's too long for a particular path.

If you need 3 text lines, simply clone the first one and move it away so it looks like it's more lines in a single Text object.

There is a number of ways you can trace the "brain" to get the paths you can put text on. Are you familiar with Inkscape enough to do that?
just hand over the chocolate and nobody gets hurt

Inkscape Manual on Floss
Inkscape FAQ
very comprehensive Inkscape guide
Inkscape 0.48 Illustrator's Cookbook - 109 recipes to learn and explore Inkscape - with SVG examples to download

dubis
Posts: 7
Joined: Fri Feb 26, 2016 12:25 am

Re: Is it possible to put the text in the PATH in this case ?

Postby dubis » Wed Apr 18, 2018 5:22 am

Thanks Prkos,

I see also is possible to transform the brain sketch border in simple line ?
With this page
https://graphicdesign.stackexchange.com/questions/50703/how-can-i-convert-a-path-to-a-shape-in-inkscape?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
I found some trick that gives the attached resut but I'm not very conviced
Attachments
AI numeric.svg
(28.27 KiB) Downloaded 185 times

User avatar
prkos
Posts: 1625
Joined: Tue Nov 06, 2007 8:45 am
Location: Croatia

Re: Is it possible to put the text in the PATH in this case ?

Postby prkos » Wed Apr 18, 2018 6:12 am

You can try with Trace bitmap Brightness threshold or Edge detection, but you'll have to clean it up after the trace to only keep one of the edges of each "line".

https://inkscape.org/en/doc/tutorials/t ... acing.html

http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Trace.html

Since your "brain" isn't big (you gotta love the puns here) you could edit it manually, deleting nodes on one side of "line", adding a stroke to it and removing fill, deleting the segment between end points so you get lines.

But if going manual, maybe the fastest is to just use the Pencil tool to draw (trace with your mouse) around the lines manually so you end up with new paths on top of the original drawing. Make your Pencil stroke color something other than black so you easily see your newly created paths, and to make sure you keep getting the new paths in the new color and not the default black make sure your Settings are set to use Last used style:

Preferences (Shift + Ctrl + P) > Tools > Pencil > Style of new objects > Last used style
just hand over the chocolate and nobody gets hurt

Inkscape Manual on Floss
Inkscape FAQ
very comprehensive Inkscape guide
Inkscape 0.48 Illustrator's Cookbook - 109 recipes to learn and explore Inkscape - with SVG examples to download

dubis
Posts: 7
Joined: Fri Feb 26, 2016 12:25 am

Re: Is it possible to put the text in the PATH in this case ?

Postby dubis » Wed Apr 18, 2018 6:44 pm

Hi prkos,

The Tracing Bitmap is not enough as it lets 2 lines : one inside one outside the sketch. I've got the same result in removing the Fill (Click on the cross) of the sketch in the FIll on Stroke panel.
You right, I could take the bezier pencil and draw the same sketch in one line. May there is an easier issue in superimposing cups node to cups node and let just one. Is it possible ?

Thanks.

User avatar
prkos
Posts: 1625
Joined: Tue Nov 06, 2007 8:45 am
Location: Croatia

Re: Is it possible to put the text in the PATH in this case ?

Postby prkos » Thu Apr 19, 2018 6:02 am

There are a number of ways to do it, one is to take what you get from Tracing and edit to get only the line from the edge you want.

But if you want to do it manually without Tracing, using only the original drawing, do this:

Break apart the "brain" :mrgreen: (Shift + Ctrl + K) to get all independent segments. Maybe even color them differently to help with Pencil tracing.
Use Pencil tool to trace the middle of the "brain lines" of each segment idependently, use a small stroke 1 or 2 px and in some color so it's visible above the black brain lines.
It doesn't have to be centered at all, just make sure all is within the brain line and doesn't touch the edges, except where it leaks out at the ends
Once you have the Pencil line going down the middle of the brain line, select both objects, and do a Cut (Path > Cut Path). This will make the result invisible because the Pencil path will disappear and you end up with two objects that are basically brain line edges. While they are still selected, immediately after you do Cut Path, set the stroke color (Shift + click on a color chip in the palette), so you will now be able to see the results. Reduce the stroke width if it's too thick, 1 or 2 px should be fine.
Delete the segment you don't want (the one you won't be using to put text on).
Repeat for all the brain segments.
Create Text objects (not Flowed text!).
Select one Text object and one segment and Put on Path.
Adjust the text (delete the characters if the lines are too long).
Repeat for all segments.
just hand over the chocolate and nobody gets hurt

Inkscape Manual on Floss
Inkscape FAQ
very comprehensive Inkscape guide
Inkscape 0.48 Illustrator's Cookbook - 109 recipes to learn and explore Inkscape - with SVG examples to download


Return to “Help with using Inkscape”

Who is online

Users browsing this forum: No registered users and 3 guests