On 17 Jun 2004, Sven Neumann wrote:

> Hi,
> kovzol <[EMAIL PROTECTED]> writes:
> > Illegal default font description for perl_fu_mysite_buttons: -*-luxi
> > sans-medium-r-*-*-24-*-*-*-*-*-iso8859-2
> GIMP doesn't use X Logical Font Descriptors any longer, so please
> change this to "Sans Medium".

Thank you for your help! I changed this to the needed font. The only
problem is if I want to use accented letters, I run into an error:

[EMAIL PROTECTED]:~/cvs/wmi/ui> ./oval-buttons.pl -font_size_pixels 11 -text_string
"This works."
[EMAIL PROTECTED]:~/cvs/wmi/ui> ./oval-buttons.pl -font_size_pixels 11 -text_string
oval-buttons.pl: gimp_text_get_extents_fontname: procedural database
execution failed at ./oval-buttons.pl line 64 (DIE)

By the way, why must I define font_size_pixels? Without it I get into
another error:

[EMAIL PROTECTED]:~/cvs/wmi/ui> ./oval-buttons.pl -text_string Unmöglich
oval-buttons.pl: Unable to convert a reference to type 'FLOAT' at
./oval-buttons.pl line 64 (DIE)

> > oval-buttons.pl: Expected an INT32 but got 'BG_IMAGE_FILL'. Add '*1' if
> > you really intend to pass in a string at ./oval-buttons.pl line 110 (DIE)
> Please update your enums, this should be BACKGROUND_FILL instead of
> BG_IMAGE_FILL. Have a look at gimpcompat.h that documents these
> changes.

Sometimes it helps, sometimes not. Sorry to say, but I didn't find an
accurate, updated, fresh documentation about the syntax of the Gimp-Perl
(2.0) statements. Is there any?

A last note: I didn't even have to run Perl-Server within Gimp to run my
script reasonably fast:

[EMAIL PROTECTED]:~/cvs/wmi/ui> time ./oval-buttons.pl -font_size_pixels 11 

real    0m0.609s
user    0m0.080s
sys     0m0.000s

Congratulations for this speedup (it's about 7 times faster than
gimp-1.2.5 did)! However, server mode run fails on gimp_display_new():

[EMAIL PROTECTED]:~/cvs/wmi/ui> gimp -i -b '(extension-perl-server 0 0 0)'&
[1] 2633
[EMAIL PROTECTED]:~/cvs/wmi/ui> 1087502556: server version 2 started
1087502556: accepting connections on
[EMAIL PROTECTED]:~/cvs/wmi/ui> ./oval-buttons.pl -font_size_pixels 11 -text_string 
1087502561: accepted unix connection
oval-buttons.pl: gimp_display_new: procedural database execution failed at
./oval-buttons.pl line 144 (DIE)
[Invalid UTF-8] Kiszolgáló: oval-buttons.pl: gimp_display_new: procedural
database execution failed at ./oval-buttons.pl line 144 (DIE)

[EMAIL PROTECTED]:~/cvs/wmi/ui> 1087502561: closing connection 9 (136 requests in 0

Am I using gimp_display_new() in a wrong way? But during standalone run it
works well... Why?

TIA, Zoltan

Gimp-developer mailing list

Reply via email to