so for now I've finished my work on the new implementation of the text layer
in the PDB api.
The most actualized version can always be downloaded from here:
All my tests have been made with gimp-2.4.5 and the "Irb console" from
gimp-ruby. So far as I have tested I didn't run into any further problems
except that I couldn't work any further with a well-returned Vectors-object
from my gimp-vectors-from-text-layer() function. Here is an example output
from that specific problem:
Interactive Gimp-Ruby Console
Ruby version 1.8.6
irb(main):001:0> image = Image.new(600,600,RGB_IMAGE)
=> #<Gimp::Image:0xb7059c74 @self=1>
irb(main):002:0> tl = gimp_text_layer_new(image,"haha",
=> #<Gimp::Layer:0xb7edd46c @self=2>
irb(main):004:0> display = Display.new(image)
=> #<Gimp::Display:0xb6f98b00 @self=1>
irb(main):006:0> vectors = gimp_vectors_from_text_layer(image,tl)
=> #<Gimp::Vectors:0xb6f93024 @self=3>
TypeError: Bad Argument: #A PATH cannot be created from a Gimp::Vectors
from /opt/gimp-2.4/lib/gimp/2.0/ruby/pdb.rb:90:in `convert_args'
from /opt/gimp-2.4/lib/gimp/2.0/ruby/pdb.rb:113:in `call'
from (eval):3:in `add_vectors'
Also I want to extend the gimp-text-layer-get-coordinates() function. I've
written into the HELP text what I think what should be extended.
For a correct compile I needed to add PANGOFT2 cflags into the includes in the
Makefile in the "app/pdb" directory. Anything else should work out of the
Anyway, I hope the code I've written can be useful for gimp-2.6!
Gimp-developer mailing list