How to create text composed of convex polygons?

Post questions on how to use or achieve an effect in Inkscape.
chrisjj
Posts: 153
Joined: Thu Jan 17, 2013 10:45 am

How to create text composed of convex polygons?

Postby chrisjj » Tue Mar 05, 2013 10:53 pm

I need some text in which the glyphs are composed only of convex polygons. Is there an automatic way to do this?

Some overlap is OK.

I thought of finding a font in which the glyph strokes are composed of simple strokes rather than filled paths, and then breaking the path segments out into individual objects which I can thicken to rectangles. But I find no such font and find no command to break a path into segment objects.

Thanks.

User avatar
ragstian
Posts: 1181
Joined: Thu Oct 11, 2012 2:44 am
Location: Stavanger-Norway

Re: How to create text composed of convex polygons?

Postby ragstian » Tue Mar 05, 2013 11:08 pm

Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar

chrisjj
Posts: 153
Joined: Thu Jan 17, 2013 10:45 am

Re: How to create text composed of convex polygons?

Postby chrisjj » Wed Mar 06, 2013 1:03 am

Thanks Ragnar. That gets me half way:

Image

No, all I need is a way to break these path segments into separate objects. Any ideas?

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: How to create text composed of convex polygons?

Postby Lazur » Wed Mar 06, 2013 2:44 am

I don't know any other way than manually doing this, BUT be aware that if you make rectangles from each line segments exactly as they are drawn now, then you will be facing overlapping problems in every corners of the paths.
Like on the "e"'s right corner, you will have a "hole", or else, all the rounded parts would have some "spikes".

chrisjj
Posts: 153
Joined: Thu Jan 17, 2013 10:45 am

Re: How to create text composed of convex polygons?

Postby chrisjj » Wed Mar 06, 2013 2:50 am

Lazur URH wrote:you will be facing overlapping problems in every corners of the paths.


No problem. Hence my "Some overlap is OK".

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: How to create text composed of convex polygons?

Postby Lazur » Wed Mar 06, 2013 5:09 am

Here is attached what I was thinking when saw that "e".
Attachments
hlp7.zip
(2.71 KiB) Downloaded 166 times

chrisjj
Posts: 153
Joined: Thu Jan 17, 2013 10:45 am

Re: How to create text composed of convex polygons?

Postby chrisjj » Wed Mar 06, 2013 5:39 am

Thanks. How was the last one created?

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: How to create text composed of convex polygons?

Postby Lazur » Wed Mar 06, 2013 6:00 am

Made the path's curves straight, than duplicated it, then disconnected every second points, then did the same thing with the other path, but with different order.
Path's style was set in the Shift+Ctrl+F panel.
If you want to make them separate objects, then press Ctrl+Shift+K.

chrisjj
Posts: 153
Joined: Thu Jan 17, 2013 10:45 am

Re: How to create text composed of convex polygons?

Postby chrisjj » Wed Mar 06, 2013 6:20 am

Lazur URH wrote:disconnected every second points


Manually i.e. one by one?

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: How to create text composed of convex polygons?

Postby Lazur » Wed Mar 06, 2013 7:30 am

Yes, that's just the only way I know.

chrisjj
Posts: 153
Joined: Thu Jan 17, 2013 10:45 am

Re: How to create text composed of convex polygons?

Postby chrisjj » Wed Mar 06, 2013 7:35 am

chrisjj wrote:Manually i.e. one by one?


Ah, solved that.

So we have:

Click Extensions, Render Hershey Text, Apply, Close
Click text
Click Object, Ungroup
Click "Edit paths by nodes"
Click Select All
Click "Break paths at selected nodes"
Click Stroke Style, Cap: Square Cap.
Click "Path, Break Apart" (drops selection!)
Select all text objects
Click Path, Stroke to Path

Result:

Image

Excellent. Thanks all!

User avatar
druban
Posts: 1917
Joined: Fri Nov 20, 2009 10:48 pm

Re: How to create text composed of convex polygons?

Postby druban » Wed Mar 06, 2013 8:01 am

Try this:

rect3356.jpg
rect3356.jpg (255.43 KiB) Viewed 2661 times


Note: the two paths for the pattern are actually combined into one.
Your mind is what you think it is.

chrisjj
Posts: 153
Joined: Thu Jan 17, 2013 10:45 am

Re: How to create text composed of convex polygons?

Postby chrisjj » Wed Mar 06, 2013 8:24 am

Thanks Druban. I can see that might suit someone who can accept an occasional concave polygon slipping through. I'll stick with the rougher convex-only method since my CAM is very concave averse, and I have no tool to pre-verify that there are no convexs in the file.


Return to “Help with using Inkscape”