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


[Gimp-developer] fonts in gimp

2008-02-06 Thread Andrei Simion
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
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


Re: [Gimp-developer] Fonts Dialog

2006-12-30 Thread Chris Mohler
> You don't really need to restart GIMP.
> Its enough to rescan and it's done.
> Just click on "open font selection dialogue" and you'll find rescan.
>
> Salvatore

Awesome!

Now I feel like an ass for requesting a feature that exists...

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


Re: [Gimp-developer] Fonts Dialog

2006-12-30 Thread iwkse

> Well, if you *do* have thousands of fonts and they're all activated,
> the font list is two kilometers long!  That's a problem not specific
> to the GIMP, but system-wide.  I've been using an app (called
> fontypython) that creates symlinks in ~/.fonts and then restarting
> GIMP (or whatever program) whenever I need to switch fonts out.  It
> would be nice to "rescan" for fonts, though I'm not sure how much work
> would be involved.
> 
> I'd love to hear your thoughts...

You don't really need to restart GIMP.
Its enough to rescan and it's done.
Just click on "open font selection dialogue" and you'll find rescan.

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


Re: [Gimp-developer] Fonts Dialog

2006-12-30 Thread Chris Mohler
On 12/30/06, Sven Neumann <[EMAIL PROTECTED]> wrote:
> Hi,
>
> On Sat, 2006-12-30 at 15:29 +0100, iwkse wrote:
>
> > Such feature is useful when the user has a really high number of fonts
> > cause loading all them slow down whole gimp at the start.
>
> Why not just fix the slow startup instead? If your copy of fontconfig
> would work correctly, GIMP would only have to scan the fonts the first
> time it is started. Subsequent runs will use the cache file. If that
> doesn't work for you, then something is wrong with fontconfig on your
> system.


Well, if you *do* have thousands of fonts and they're all activated,
the font list is two kilometers long!  That's a problem not specific
to the GIMP, but system-wide.  I've been using an app (called
fontypython) that creates symlinks in ~/.fonts and then restarting
GIMP (or whatever program) whenever I need to switch fonts out.  It
would be nice to "rescan" for fonts, though I'm not sure how much work
would be involved.

I'd love to hear your thoughts...

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


Re: [Gimp-developer] Fonts Dialog

2006-12-30 Thread Sven Neumann
Hi,

On Sat, 2006-12-30 at 15:29 +0100, iwkse wrote:

> Such feature is useful when the user has a really high number of fonts
> cause loading all them slow down whole gimp at the start.

Why not just fix the slow startup instead? If your copy of fontconfig
would work correctly, GIMP would only have to scan the fonts the first
time it is started. Subsequent runs will use the cache file. If that
doesn't work for you, then something is wrong with fontconfig on your
system.


Sven


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


[Gimp-developer] Fonts Dialog

2006-12-30 Thread iwkse
Hi all,

I would like to suggest a nice feature that is missing in fonts dialog.
Actually Font Dialog allow to rescan fonts and that would be really
useful if can be on it a function(just a simlink to a new font path in
user fonts folder) that allow to add/remove a font dir making possible
to add/remove dinamically fonts.
Such feature is useful when the user has a really high number of fonts
cause loading all them slow down whole gimp at the start.

Happy new years for all ML!

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


Re: [Gimp-developer] fonts

2004-09-13 Thread William Skaggs

Sven, Tor, Michael, Nathan, thanks for all the information.  I've
tried to synthesize it into something both correct and helpful.  The
result should show up at http://docs.gimp.org/en/ within a couple of
days, in section 2.4.11: maybe you can look it over to see if there's
anything I've screwed up.

Best,
  -- Bill
 

 
__ __ __ __
Sent via the KillerWebMail system at primate.ucdavis.edu


 
   
___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer


Re: [Gimp-developer] fonts

2004-09-12 Thread Sven Neumann
Hi,

Nathan Summers <[EMAIL PROTECTED]> writes:

> > The information given above may be appropriate for adding fonts to
> > your win32 system but it is irrelevant for GIMP on Win32. Please read
> > my other mail in this very thread.
> 
> That's funny.  Works for me.  I'd call the method I use to install
> fonts that I use in GIMP on Win32 very relevant.  I don't do
> anything that is gimp-specific.  Please see my other mail in this
> very thread.

If it works, it works because fontconfig on Win32 is by default setup
to pick the fonts from the same directories that the operating systems
expects them. That is of course intentional but doesn't change the
fact that GIMP on Win32 doesn't care about whether fonts are installed
for the win32 operating system or not. All it cares about is whether
fontconfig sees them. So what you've written about how to install
fonts is rather misleading because it makes people believe that GIMP
would request the system fonts which it doesn't.


Sven
___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer


Re: [Gimp-developer] fonts

2004-09-11 Thread Tor Lillqvist
Sven Neumann writes:
 > The information given above may be appropriate for adding fonts to
 > your win32 system but it is irrelevant for GIMP on Win32.

On Win32, fontconfig by default uses the Windows fonts directory,
i.e. the same fonts that Windows uses itself.

--tml


___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer


Re: [Gimp-developer] fonts

2004-09-11 Thread Nathan Summers
On 11 Sep 2004 09:28:54 +0200, Sven Neumann <[EMAIL PROTECTED]> wrote:

> The information given above may be appropriate for adding fonts to
> your win32 system but it is irrelevant for GIMP on Win32. Please read
> my other mail in this very thread.

That's funny.  Works for me.  I'd call the method I use to install
fonts that I use in GIMP on Win32 very relevant.  I don't do anything
that is gimp-specific.  Please see my other mail in this very thread.

Rockwalrus
___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer


Re: [Gimp-developer] fonts

2004-09-11 Thread Sven Neumann
Hi,

Nathan Summers <[EMAIL PROTECTED]> writes:

> > 3) How do you add fonts in Windows, and what types of fonts can
> > GIMP use there?
> 
> The easiest way is to drag the file onto the Fonts directory and let
> the shell do its magic.  Unless you've done something creative, it's
> probably in its default location of C:\windows\fonts or
> C:\winnt\fonts.  Sometimes double-clicking on a font will install it
> as well as display it; sometimes it only displays it.  I don't know
> what the pattern is.
> 
> I would imagine that GIMP can use any type of font on Windows that
> FreeType can handle, although figuring out how to install fonts that
> Windows can't handle natively is left as an exercise for the reader.
> 
> The support Windows has varies by version; all that GIMP runs on
> support at least TrueType, Windows FON, and Windows FNT.  2000 and
> later support Type 1 and OpenType.  ME supports OpenType.  I don't
> know about Type 1.
> 
> To install a Type 1 file, you need both the .pfb and .pfm.  Drag the
> one that gets an icon into the fonts folder.  The other one doesn't
> strictly need to be in the same directory when you drag the file,
> since it uses some kind of search algorithm to find it if it's not,
> but I'm not sure what the algorithm is, and only know that it does
> this because I've accidentally put the other file in the wrong
> directory.

The information given above may be appropriate for adding fonts to
your win32 system but it is irrelevant for GIMP on Win32. Please read
my other mail in this very thread.


Sven
___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer


Re: [Gimp-developer] fonts

2004-09-10 Thread Michael Schumacher
Nathan Summers schrieb:
On Fri, 10 Sep 2004 10:47:52 -0700, William Skaggs
<[EMAIL PROTECTED]> wrote:
3) How do you add fonts in Windows, and what types of fonts can GIMP use
there?

The easiest way is to drag the file onto the Fonts directory and let
the shell do its magic.  Unless you've done something creative, it's
probably in its default location of C:\windows\fonts or
C:\winnt\fonts.  Sometimes double-clicking on a font will install it
as well as display it; sometimes it only displays it.  I don't know
what the pattern is.
Fonts files that can be installed have an "Install" entry in their 
context menu, too. Additionally, copy&paste of fonts files works as well.

I would imagine that GIMP can use any type of font on Windows that
FreeType can handle, although figuring out how to install fonts that
Windows can't handle natively is left as an exercise for the reader.
I hope that the docs will describe that arbitrary other font directories 
can be added in GIMP's preferences.

HTH,
Michael
--
The GIMP > http://www.gimp.org| IRC: irc://irc.gimp.org/gimp
Wiki > http://wiki.gimp.org   | .de: http://gimpforum.de
Sodipodi > http://sodipodi.sf.net | IRC: irc://irc.gimp.org/sodipodi
___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer


Re: [Gimp-developer] fonts

2004-09-10 Thread Nathan Summers
On Fri, 10 Sep 2004 10:47:52 -0700, William Skaggs
<[EMAIL PROTECTED]> wrote:
> 3) How do you add fonts in Windows, and what types of fonts can GIMP use
> there?

The easiest way is to drag the file onto the Fonts directory and let
the shell do its magic.  Unless you've done something creative, it's
probably in its default location of C:\windows\fonts or
C:\winnt\fonts.  Sometimes double-clicking on a font will install it
as well as display it; sometimes it only displays it.  I don't know
what the pattern is.

I would imagine that GIMP can use any type of font on Windows that
FreeType can handle, although figuring out how to install fonts that
Windows can't handle natively is left as an exercise for the reader.

The support Windows has varies by version; all that GIMP runs on
support at least TrueType, Windows FON, and Windows FNT.  2000 and
later support Type 1 and OpenType.  ME supports OpenType.  I don't
know about Type 1.

To install a Type 1 file, you need both the .pfb and .pfm.  Drag the
one that gets an icon into the fonts folder.  The other one doesn't
strictly need to be in the same directory when you drag the file,
since it uses some kind of search algorithm to find it if it's not,
but I'm not sure what the algorithm is, and only know that it does
this because I've accidentally put the other file in the wrong
directory.

Rockwalrus
___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer


Re: [Gimp-developer] fonts

2004-09-10 Thread Sven Neumann
Hi,

"William Skaggs" <[EMAIL PROTECTED]> writes:

>   I would like to add some information about fonts to gimp-help-2,

You have read http://gimp.org/unix/fonts.html, haven't you?

I would also suggest not to duplicate that information in gimp-help-2
but simply to link to this page. If there's info missing, it should
probably be added there.

> Here is what I know: In Linux, you can add a Truetype or Freetype
> font by putting it in your ~/.fonts directory or your
> .gimp-2.0/fonts directory.

I am sorry, but what is a FreeType font? You probably mean OpenType?!

> Here is what I would like to know:
> 
> 1) Can you use other types of fonts in GIMP?  Are there any types
> for which special things need to be done?

You can use any font that FreeType2 can handle. By default, FreeType2
supports the following font formats:

* TrueType fonts (and collections)
* Type 1 fonts
* CID-keyed Type 1 fonts
* CFF fonts
* OpenType fonts (both TrueType and CFF variants)
* SFNT-based bitmap fonts
* X11 PCF fonts
* Windows FNT fonts
* BDF fonts (including anti-aliased ones)
* PFR fonts
* Type42 fonts (limited support)

(see http://www.freetype.org/freetype2/index.html#features).


> 3) How do you add fonts in Windows, and what types of fonts can GIMP
> use there?

The same code is used to render fonts on Windows so the same
information applies here. Actually we should move
http://gimp.org/unix/fonts.html out of the unix directory.

> 4) If you want to create special characters (i.e., non-ascii) with
> the Text tool, what is the right (and/or easiest) way to do it?

Use a character picker tool like gucharmap. gucharmap can also install
a GTK+ input module so it is directly available from the right-click
menu in the GIMP text editor.


Sven
___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer


[Gimp-developer] fonts

2004-09-10 Thread William Skaggs
Hi,

  I would like to add some information about fonts to gimp-help-2, but I'm
hampered by lack of knowledge.  Here is what I know:  In Linux, you can
add a Truetype or Freetype font by putting it in your ~/.fonts directory
or your .gimp-2.0/fonts directory.  

Here is what I would like to know:

1) Can you use other types of fonts in GIMP?  Are there any types for
which special things need to be done?

2) Are there any Linux setups on which GIMP 2.0 or GIMP 2.1 runs but where
you need to do things differently?

3) How do you add fonts in Windows, and what types of fonts can GIMP use
there?

I know enough about the problems people have had with malformed fonts
to be able to give some useful advice, I think (i.e., don't close the
console window that pops up!).  One more question, though:

4) If you want to create special characters (i.e., non-ascii) with the
Text tool, what is the right (and/or easiest) way to do it?

Thanks for any informatin,

  -- Bill


 

 
__ __ __ __
Sent via the KillerWebMail system at primate.ucdavis.edu


 
   
___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer