GIMP Chat
http://gimpchat.com/

Python plug-in du jour: unclose-path
http://gimpchat.com/viewtopic.php?f=9&t=1503
Page 2 of 2

Author:  Oregonian [ Sat Apr 09, 2011 9:24 pm ]
Post subject:  Re: Python plug-in du jour: unclose-path

You guys are funny. Yeah, leave the rain dancing out of it. It keeps showing up here.

Author:  saulgoode [ Sat Apr 09, 2011 10:11 pm ]
Post subject:  Re: Python plug-in du jour: unclose-path

Ofnuts, you should consider submitting a bug report upon the fact that the "open-ness" of the curve components of some fonts is not honored when converted to path strokes. I was unable to find an existing bug report on the subject and it is something that GIMP should ideally do correctly in the first place.

I believe the associated code is found in the "gimp_text_vectors_new()" function (defined in app/text/gimptext-vectors.c). I am not that familiar with Pango rendering and I do not know how GIMP can determine whether the 'RenderContext' should be left open (it may require a change to Pango to expose that information).

If Inkscape handles such text properly (when converted to paths, not merely when displaying it), perhaps it would be worth looking into how they handle it.

Author:  PhotoComix [ Sun Apr 10, 2011 6:04 am ]
Post subject:  Re: Python plug-in du jour: unclose-path

GLAD is perfect

Just the sound: wellcome in the GLAD :spring !!
sound nice even promising :blingbling :guitrock :sglasses :toke
:vic :musik :welcome :peng :weed :snap :cheers

wellcome in the GUARD :2gun !!
... maybe less promising :shoot :nono

Author:  ofnuts [ Sun Apr 10, 2011 6:06 am ]
Post subject:  Re: Python plug-in du jour: unclose-path

saulgoode wrote:
Ofnuts, you should consider submitting a bug report upon the fact that the "open-ness" of the curve components of some fonts is not honored when converted to path strokes. I was unable to find an existing bug report on the subject and it is something that GIMP should ideally do correctly in the first place.
Done... My first Gimp bug report. I am a big boy now :)

Author:  mahvin [ Sun Apr 10, 2011 7:15 am ]
Post subject:  Re: Python plug-in du jour: unclose-path

PC: GLAD it is!

Ofnuts: I've had some interesting effects from using your plug-in, when using with non single-stroke fonts. I've also been searching (unsuccessfully) for a way to convert these into usable fonts, at least for storing their paths. I guess I could just convert them to svg paths and be done with it.

Author:  lylejk [ Sun Apr 10, 2011 9:34 am ]
Post subject:  Re: Python plug-in du jour: unclose-path

ofnuts wrote:
saulgoode wrote:
Ofnuts, you should consider submitting a bug report upon the fact that the "open-ness" of the curve components of some fonts is not honored when converted to path strokes. I was unable to find an existing bug report on the subject and it is something that GIMP should ideally do correctly in the first place.
Done... My first Gimp bug report. I am a big boy now :)


Let's just hope you don't get reemed like I did a while back. I did submit a legit one too, but the last one I did, it turned out to be an issue with my own configuration and they reemed me for submitting it. Got me so mad that I refused to ever submit a bugzilla report again. :)

Author:  ofnuts [ Sun Apr 10, 2011 9:40 am ]
Post subject:  Re: Python plug-in du jour: unclose-path

lylejk wrote:
Let's just hope you don't get reemed like I did a while back. I did submit a legit one too, but the last one I did, it turned out to be an issue with my own configuration and they reemed me for submitting it. Got me so mad that I refused to ever submit a bugzilla report again. :)

I write code for living and this is fairly frequent, and I can be at any end of the stick:-)

PS: I have already reported a couple of issues via the Gimp-developer mailing lists and they have been fixed in due time :)

Author:  Rod [ Sun Apr 10, 2011 1:08 pm ]
Post subject:  Re: Python plug-in du jour: unclose-path

Cool script ofnuts :)
Thought i would show the results with the closed path layer visible along with the outcome from your script.
Pretty awesome!

font before running script
Image

after running script
Image

Author:  PhotoMaster [ Sun Apr 10, 2011 8:04 pm ]
Post subject:  Re: Python plug-in du jour: unclose-path

I'm not sure I understand. I guess I'll have to download it and play with it a little bit!

Author:  Rod [ Sun Apr 10, 2011 8:15 pm ]
Post subject:  Re: Python plug-in du jour: unclose-path

It takes a font used for machining or engraving and actually un closes it to form the actual font, or what the font would look like if engraved on say your door. :)

Author:  RobA [ Sun Apr 10, 2011 9:06 pm ]
Post subject:  Re: Python plug-in du jour: unclose-path

ofnuts wrote:
saulgoode wrote:
Ofnuts, you should consider submitting a bug report upon the fact that the "open-ness" of the curve components of some fonts is not honored when converted to path strokes. I was unable to find an existing bug report on the subject and it is something that GIMP should ideally do correctly in the first place.
Done... My first Gimp bug report. I am a big boy now :)


The ones I looked at have the TTF closed. (It is required by the TTF specification that all paths be closed), so I'm not sure if gimp is the problem Inkscape acts the same way with those fonts...

-Rob A>

Author:  saulgoode [ Sun Apr 10, 2011 9:15 pm ]
Post subject:  Re: Python plug-in du jour: unclose-path

RobA wrote:
The ones I looked at have the TTF closed. (It is required by the TTF specification that all paths be closed), so I'm not sure if gimp is the problem Inkscape acts the same way with those fonts...

Interesting. I had not considered that it was part of the specification. I was thinking it was likely that Pango didn't expose the information and thus GIMP was unable to do anything about (or at least Pango didn't expose it when the GIMP code was written).

Perhaps a bug report should be filed against the fonts.

Author:  lylejk [ Sun Apr 10, 2011 9:45 pm ]
Post subject:  Re: Python plug-in du jour: unclose-path

Still wonder if you could get the equivalent center line of a font to create a single direction (open) path? That way, even TTFs could be used to create these. :)

Page 2 of 2 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/