New text_layer.pdb file for the PDB
Hello together,
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:
http://www.cip.ifi.lmu.de/~heese/text_layer.pdb
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)
=> #
irb(main):002:0> tl = gimp_text_layer_new(image,"haha",
Context.get_font(),10,10,100,0)
=> #
irb(main):003:0> image.add_layer(tl,-1)
=> nil
irb(main):004:0> display = Display.new(image)
=> #
irb(main):006:0> vectors = gimp_vectors_from_text_layer(image,tl)
=> #
irb(main):007:0> image.add_vectors(vectors,-1)
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'
from (irb):7
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
box!
Anyway, I hope the code I've written can be useful for gimp-2.6!
best regards
Marcus