Re: [Gimp-developer] fonts in gimp

2008-02-08 Thread Sven Neumann
Hi,

On Thu, 2008-02-07 at 18:56 -0500, Andrei Simion wrote:

> This is what we use and it worked fine with Gimp 1.2. version, but I've 
> been told the font description has changed for 2.x versions.

What you used is certainly not the format that GIMP 1.2 expected. The
format for GIMP 1.2 was XLFD as described in
http://ftp.xfree86.org/pub/XFree86/4.5.0/doc/xlfd.txt


Sven


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


Re: [Gimp-developer] fonts in gimp

2008-02-07 Thread Andrei Simion
Kevin Cozens wrote:
> Andrei Simion wrote:
>> Let's say I want to pass this font 'FrutigerBold bold Italic normal'. 
>> What is the new format of this font for version 2.2 of Gimp.
> 
> Would you believe that it is simply "FrutigerBold Bold Italic"? Use the name 
> of the font followed by the style modifiers.

This is what we use and it worked fine with Gimp 1.2. version, but I've 
been told the font description has changed for 2.x versions.

> 
> BTW, why are you upgrading to GIMP 2.2 version when GIMP 2.4 has been 
> released?
> 

It has to do with the sys admin.

Thanks for the help.

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


Re: [Gimp-developer] fonts in gimp

2008-02-07 Thread Kevin Cozens
Andrei Simion wrote:
> Let's say I want to pass this font 'FrutigerBold bold Italic normal'. 
> What is the new format of this font for version 2.2 of Gimp.

Would you believe that it is simply "FrutigerBold Bold Italic"? Use the name 
of the font followed by the style modifiers.

BTW, why are you upgrading to GIMP 2.2 version when GIMP 2.4 has been released?

-- 
Cheers!

Kevin.

http://www.ve3syb.ca/   |"What are we going to do today, Borg?"
Owner of Elecraft K2 #2172  |"Same thing we always do, Pinkutus:
 |  Try to assimilate the world!"
#include  |  -Pinkutus & the Borg
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


Re: [Gimp-developer] fonts in gimp

2008-02-07 Thread Andrei Simion
Sven Neumann wrote:
> Hi,
> 
> On Wed, 2008-02-06 at 20:26 -0500, Andrei Simion wrote:
> 
>> I have some Perl scripts that connect to a Gimp server and generate 
>> images. I want to upgrade to the 2.2 version of Gimp and I know that I 
>> have to change the font names. That's it, I pass a font to the script in 
>> order to generate an image having a text on it. The question is if it is 
>> a correspondence between the old font names (ver 1.2) and the one for 
>> version 2.2.
> 
> GIMP 2.x has some code that tries to come up with a good guess in case
> you are using the old font descriptions. This is used to interpret the
> parasites written by the old GIMP Dynamic Text plug-in. You could have
> look at that code (app/text/gimptext-xlfd.c).
> 
> But I would suggest you just make yourself familiar with the X Logical
> Font Description (that is the old style) and the way that Pango font
> descriptions work. The string represensation used for fonts in Pango is
> explained at
> http://library.gnome.org/devel/pango/unstable/pango-Fonts.html#pango-font-description-from-string

Thanks, but I cannot find what I am looking for.

I need to get the list of font names that can be passed to the Gimp 
server, 2.2 version.

Let's say I want to pass this font 'FrutigerBold bold Italic normal'. 
What is the new format of this font for version 2.2 of Gimp.

Thanks,
Andrei

> 
> 
> Sven
> 


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


Re: [Gimp-developer] fonts in gimp

2008-02-06 Thread Sven Neumann
Hi,

On Wed, 2008-02-06 at 20:26 -0500, Andrei Simion wrote:

> I have some Perl scripts that connect to a Gimp server and generate 
> images. I want to upgrade to the 2.2 version of Gimp and I know that I 
> have to change the font names. That's it, I pass a font to the script in 
> order to generate an image having a text on it. The question is if it is 
> a correspondence between the old font names (ver 1.2) and the one for 
> version 2.2.

GIMP 2.x has some code that tries to come up with a good guess in case
you are using the old font descriptions. This is used to interpret the
parasites written by the old GIMP Dynamic Text plug-in. You could have
look at that code (app/text/gimptext-xlfd.c).

But I would suggest you just make yourself familiar with the X Logical
Font Description (that is the old style) and the way that Pango font
descriptions work. The string represensation used for fonts in Pango is
explained at
http://library.gnome.org/devel/pango/unstable/pango-Fonts.html#pango-font-description-from-string


Sven


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