I’m discovering the gimp API for few days now (using python-fu) and I actually enjoy it.
However there is something I can’t manage to do : attach a text on a path.
Using the user interface to perform it is quite easy (create a path > create a text > click on text along path in toolbox)… but, as you might expect, I ain’t love when things are easy. That’s why I’m trying to do it using python.
Here is what I already managed to do :
- create a layer
- add a path on it
- create a new text
- display the whole thing
All I have to do right now is learning how to make my text follow the path.
Help would be warmly appreciated.
Thank you
After hours and hours of research on the right side of Internet (the one with no naked people on it) I haven’t found so much about my question. That’s why I decided to look at Gimp source code in order to know how the magical “text along path” actually works… and it seems nothing has been made to make this action available via pdb.
After that, in order to be sure, I’ve asked on the gimp developers’ mailing list and someone (I don’t know if I’m allowed to tell his name right here) replied me with that :
Another told me how to create my own “text along path” plugin :
Then he encouraged me to look at two plugins doing things similar with vectors, named ribbon-path and slinky, and available on http://gimp-path-tools.sourceforge.net/
I hope (thanks to these two guys) this post will help.