[Gimp-developer] "gimp-text-fontname" and "gimp-text-get-extents-fontname" for the PDB

Marcus Heese heese at cip.ifi.lmu.de
Mon Oct 8 00:27:15 PDT 2007


Hello there!

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.

I would be happy about some feedback because I urgently need this feature in 
the gimp.

Best regards
Marcus

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gimp-2.4.0-gimp-text-fontname-new.patch
Type: text/x-diff
Size: 27414 bytes
Desc: not available
Url : /lists/gimp-developer/attachments/20071008/9a1d0399/attachment-0001.bin 


More information about the Gimp-developer mailing list