Re: "gimp-text-fontname" and "gimp-text-get-extents-fontname" for the PDB

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Mon, 2007-10-08 at 09:27 +0200, Marcus Heese wrote:

> I've written a small patch based on the gimp-2.4.0-rc2 sources which 
> implements a new gimp-text-fontname and gimp-text-get-extents-fontname 
> function for the PDB. In fact, I wrote this because I needed the 
> possibilities of adjusting letter/line spacing and indentation as well as the 
> possibilities of directly getting access to hinting and auto-hinting in my 
> gimp-ruby-scripts.
> 
> As I'm totally new to gimp development I don't really know if this was the 
> right place to implement, so I just wrote two new 
> functions "gimp-text-fontname-new" and "gimp-text-get-extents-fontname-new" 
> and put them just in the same files where I found the other old equivalent 
> functions. I hope my C knowledge wasn't that bad, but as gimp sources were 
> really well arranged, it didn't take me too long to get used to the syntax.

Unfortunately it seems that you missed the comment at the top of the
file you edited. It informs you that this file is generated code. You
could have saved yourself a lot of work by editing the
corresponding .pdb file instead.

We are in need for an updated text-tool PDB API but I would really like
to get it right this time instead of adding more kludges. There's a bug
report for this and it would be very nice if we could get some help with
it. Perhaps then we can get such an API for GIMP 2.6:

 http://bugzilla.gnome.org/show_bug.cgi?id=164539


Sven


_______________________________________________
Gimp-developer mailing list
Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux