RSS/Atom feed Twitter
Site is read-only, email is disabled

fonts in gimp

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

6 of 6 messages available
Toggle history

Please log in to manage your subscriptions.

fonts in gimp Andrei Simion 07 Feb 02:26
  fonts in gimp Sven Neumann 07 Feb 08:30
   fonts in gimp Andrei Simion 07 Feb 18:21
    fonts in gimp Kevin Cozens 07 Feb 20:02
     fonts in gimp Andrei Simion 08 Feb 00:56
      fonts in gimp Sven Neumann 08 Feb 09:09
Andrei Simion
2008-02-07 02:26:11 UTC (almost 17 years ago)

fonts in gimp

Hi all,

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.

Thanks,
Andrei

Sven Neumann
2008-02-07 08:30:44 UTC (almost 17 years ago)

fonts in gimp

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

Andrei Simion
2008-02-07 18:21:21 UTC (almost 17 years ago)

fonts in gimp

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

Kevin Cozens
2008-02-07 20:02:09 UTC (almost 17 years ago)

fonts in gimp

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?

Andrei Simion
2008-02-08 00:56:39 UTC (almost 17 years ago)

fonts in gimp

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

Sven Neumann
2008-02-08 09:09:58 UTC (almost 17 years ago)

fonts in gimp

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