GIMP Chat http://gimpchat.com/ |
|
Python plug-in du jour: unclose-path http://gimpchat.com/viewtopic.php?f=9&t=1503 |
Page 1 of 2 |
Author: | ofnuts [ Sat Apr 09, 2011 10:54 am ] |
Post subject: | Python plug-in du jour: unclose-path |
I've been playing with "engraving fonts" aka "stroke fonts", that are not "outline fonts" like most fonts. Unfortunately Gimp doesn't handle them too well, the paths it creates from them ("Path from text" in the Text tool) automatically closes the strokes... So I wrote a quick script to reopen them. It's available there: https://sourceforge.net/projects/gimp-path-tools/ as unclose-path-0.0.py. It adds an "unclose...." item to the right-click menu in the Paths dialog. The mandatory before/after picture: Attachment: UnclosedPath.png [ 48.63 KiB | Viewed 4988 times ] ...fresh from the editor, the bytes are barely dry... bug reports gladly accepted (it may unclose too many things). OK, it's sunny outside, and I have a new lens to try. See you later. |
Author: | lylejk [ Sat Apr 09, 2011 11:36 am ] | ||
Post subject: | Re: Python plug-in du jour: unclose-path | ||
OK; did an online search and found the Aspire font. It is suppose to be a stroke font but it's still ttf. Not sure if ttf is the issue but attached is my result using your script ofnuts. It would be cool to just find the center of the font and do a single direction path but I'm not sure how hard that would be. As a side note, do you have a list of fonts in particular that might be friendly to your vision of your pluging?
|
Author: | Oregonian [ Sat Apr 09, 2011 11:40 am ] |
Post subject: | Re: Python plug-in du jour: unclose-path |
I don't know where to find an engrave font. Tried it on a regular font and came up with just a few lines scattered hither and yon. |
Author: | ofnuts [ Sat Apr 09, 2011 12:51 pm ] |
Post subject: | Re: Python plug-in du jour: unclose-path |
Engraving fonts are fonts where the character is defined with single strokes without width. For instance, a 'T' in such a font is defined by two dashes. Some free engraving fonts: http://featurecam.com/general/support/engrave_fonts.asp |
Author: | lylejk [ Sat Apr 09, 2011 1:07 pm ] | ||
Post subject: | Re: Python plug-in du jour: unclose-path | ||
Thanks for the font link ofnuts; your script is cool. Now I can stroke all kinds of things in a single direction.
|
Author: | Rod [ Sat Apr 09, 2011 1:33 pm ] |
Post subject: | Re: Python plug-in du jour: unclose-path |
Sweet now that i have Python running in portable ill try it in there. Which ones the path ofnuts the top or bottom area of your image? I notice the top one is darker. By the way thanks for the font link too. PS i miss raindancing |
Author: | lylejk [ Sat Apr 09, 2011 1:38 pm ] |
Post subject: | Re: Python plug-in du jour: unclose-path |
Used Machine Tool San Serif Rod. I did download all 5 available fonts. |
Author: | Oregonian [ Sat Apr 09, 2011 2:24 pm ] |
Post subject: | Re: Python plug-in du jour: unclose-path |
ofnuts. |
Author: | ofnuts [ Sat Apr 09, 2011 2:57 pm ] |
Post subject: | Re: Python plug-in du jour: unclose-path |
Rod wrote: Sweet now that i have Python running in portable ill try it in there. The top has the extra closure segment on each character, the bottom has the closure segment removed.Which ones the path ofnuts the top or bottom area of your image? Rod wrote: PS i miss raindancing Just don't
|
Author: | ofnuts [ Sat Apr 09, 2011 3:23 pm ] |
Post subject: | Re: Python plug-in du jour: unclose-path |
lylejk wrote: Thanks for the font link ofnuts; your script is cool. Now I can stroke all kinds of things in a single direction. Rather cool for neon signs:Attachment: Shop.png [ 177.61 KiB | Viewed 4921 times ] |
Author: | Oregonian [ Sat Apr 09, 2011 3:37 pm ] |
Post subject: | Re: Python plug-in du jour: unclose-path |
This is so cool. This is Machine Tool Grenadier both upper and lower cases - the lower case is just a bit smaller. |
Author: | lylejk [ Sat Apr 09, 2011 3:53 pm ] |
Post subject: | Re: Python plug-in du jour: unclose-path |
ofnuts wrote: lylejk wrote: Thanks for the font link ofnuts; your script is cool. Now I can stroke all kinds of things in a single direction. Rather cool for neon signs:Attachment: Shop.png Wow; you got that right. |
Author: | M1GU3L05 [ Sat Apr 09, 2011 6:39 pm ] |
Post subject: | Re: Python plug-in du jour: unclose-path |
how do i do all that? |
Author: | mahvin [ Sat Apr 09, 2011 7:30 pm ] |
Post subject: | Re: Python plug-in du jour: unclose-path |
I see you're up for another Wilber, Ofnuts. The GIMP Academy of Graphic Arts (aka GAGA) has taken note of your contribution. Your effort to make GIMP'in more artistically creative is commendable (which loosely translated means, "THANKS A BUNCH, Ofnuts!") |
Author: | mahvin [ Sat Apr 09, 2011 7:40 pm ] |
Post subject: | Re: Python plug-in du jour: unclose-path |
On a sidenote, you can open paths to font in Inkscape. I have never actually exported opened paths from Inkscape to GIMP that have remained open mainly because I think I am missing a key step in that process. I'll try to find more information on that later. |
Author: | Rod [ Sat Apr 09, 2011 8:16 pm ] |
Post subject: | Re: Python plug-in du jour: unclose-path |
I refuse to recognize GAGA How about GAS? (Graphic Art Scripters) |
Author: | Willy [ Sat Apr 09, 2011 8:17 pm ] |
Post subject: | Re: Python plug-in du jour: unclose-path |
GIMP's Academy of Users GAU or GAOU I'll get something I am sure of it |
Author: | mahvin [ Sat Apr 09, 2011 8:24 pm ] |
Post subject: | Re: Python plug-in du jour: unclose-path |
Quote: How about GAS? (Graphic Art Scripters) Like that is any better? LOL. I originally had chosen GAA (GIMP Art Association)... GLAD (GIMPers Love Artistic Developers) it shall be... (pounds gavel) |
Author: | Rod [ Sat Apr 09, 2011 8:30 pm ] |
Post subject: | Re: Python plug-in du jour: unclose-path |
GLAD i like |
Author: | mahvin [ Sat Apr 09, 2011 9:00 pm ] |
Post subject: | Re: Python plug-in du jour: unclose-path |
To be totally honest, I initially thought to call it GUARD (GIMP Users Association of Rain Dancers) but felt it might intimidate the coders, lol. |
Page 1 of 2 | All times are UTC - 5 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |