It is currently Thu Jul 04, 2024 4:58 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 33 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Python plug-in du jour: unclose-path
PostPosted: Sat Apr 09, 2011 9:24 pm  (#21) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
You guys are funny. Yeah, leave the rain dancing out of it. It keeps showing up here.

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: Python plug-in du jour: unclose-path
PostPosted: Sat Apr 09, 2011 10:11 pm  (#22) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
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.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Python plug-in du jour: unclose-path
PostPosted: Sun Apr 10, 2011 6:04 am  (#23) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
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

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Last edited by PhotoComix on Sun Apr 10, 2011 6:12 am, edited 7 times in total.

Top
 Post subject: Re: Python plug-in du jour: unclose-path
PostPosted: Sun Apr 10, 2011 6:06 am  (#24) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4756
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 :)

_________________
Image


Top
 Post subject: Re: Python plug-in du jour: unclose-path
PostPosted: Sun Apr 10, 2011 7:15 am  (#25) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
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.

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Python plug-in du jour: unclose-path
PostPosted: Sun Apr 10, 2011 9:34 am  (#26) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12531
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. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Python plug-in du jour: unclose-path
PostPosted: Sun Apr 10, 2011 9:40 am  (#27) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4756
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 :)

_________________
Image


Top
 Post subject: Re: Python plug-in du jour: unclose-path
PostPosted: Sun Apr 10, 2011 1:08 pm  (#28) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
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

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Python plug-in du jour: unclose-path
PostPosted: Sun Apr 10, 2011 8:04 pm  (#29) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2010
Posts: 2253
Location: Retired Moderator Slowly Returning to the Living.
I'm not sure I understand. I guess I'll have to download it and play with it a little bit!

_________________
Artists aren't crazy! We're eccentric! ~G.M. Ross

Image

My Sigs = My Photos
Check out my work at http://www.flickr.com/photos/photomastergreg.


Top
 Post subject: Re: Python plug-in du jour: unclose-path
PostPosted: Sun Apr 10, 2011 8:15 pm  (#30) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
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. :)

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Python plug-in du jour: unclose-path
PostPosted: Sun Apr 10, 2011 9:06 pm  (#31) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
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>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: Python plug-in du jour: unclose-path
PostPosted: Sun Apr 10, 2011 9:15 pm  (#32) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
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.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Python plug-in du jour: unclose-path
PostPosted: Sun Apr 10, 2011 9:45 pm  (#33) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12531
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. :)

_________________
Lyle

Psalm 109:8

Image


Top
Post new topic Reply to topic  [ 33 posts ]  Go to page Previous  1, 2

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts use in python of plug-in lighting

4

No new posts Attachment(s) GIMP Python-Fu Plug-in template

4

No new posts Attachment(s) Path Wobble 3D AKA Hand-scribbling plug-in

19

No new posts GIMP 2.10 doesn't install my python plug-ins

1

No new posts Plug-in crashes after OS upgrade: python version mismatch? maybe?

4



* Login  



Powered by phpBB3 © phpBB Group