Re: Re: [Gimp-developer] start perl server

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

 



On 17 Jun 2004, Sven Neumann wrote:

> Hi,
>
> kovzol <kovzol@xxxxxxxxxxxxxxxx> 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:

wmi@wmi:~/cvs/wmi/ui> ./oval-buttons.pl -font_size_pixels 11 -text_string
"This works."
wmi@wmi:~/cvs/wmi/ui> ./oval-buttons.pl -font_size_pixels 11 -text_string
Unmöglich.
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:

wmi@wmi:~/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:

wmi@wmi:~/cvs/wmi/ui> time ./oval-buttons.pl -font_size_pixels 11 -text_string
Fast

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():

wmi@wmi:~/cvs/wmi/ui> gimp -i -b '(extension-perl-server 0 0 0)'&
[1] 2633
wmi@wmi:~/cvs/wmi/ui> 1087502556: server version 2 started
1087502556: accepting connections on
/tmp/gimp-perl-serv-uid-503/gimp-perl-serv
wmi@wmi:~/cvs/wmi/ui> ./oval-buttons.pl -font_size_pixels 11 -text_string Fast
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)

wmi@wmi:~/cvs/wmi/ui> 1087502561: closing connection 9 (136 requests in 0
seconds)

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


TIA, Zoltan


[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