Re: [Gimp-user] script-fu text

2004-08-05 Thread Mark Andrachek, Jr.
>
> I seem unable to specify the font_file correctly to be able to call it in
> non-interactive mode though. The font file name is actually
> "wmb_.pfm".  I've tried that, with and without the full path
> ("c:\Windows\fonts\wmb_.pfm"), and I've tried the font name by itself
> ("Myriad Bold"). I am able to select the font correctly in interactive
> mode.
>
> Any hints here?

Well, I figured this one out on my own too.  In my user directory was a
dotfile (fonts-cache or something, not sitting in front of it right now)
containing the list of font files and their properties.  Using the exact
text specified there for the font-file and it works. Changing the case of
a single letter, and it breaks. Just a unix/win32 difference.

--
Mark R. Andrachek, Jr.
[EMAIL PROTECTED]
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


Re: [Gimp-user] script-fu text

2004-08-05 Thread Sven Neumann
Hi,

"Mark Andrachek, Jr." <[EMAIL PROTECTED]> writes:

> So, some searching found that I need to use plug-in-freetype, which
> takes care of all of this, and produces *perfect* text for me, at
> least in interactive mode.
> 
> I seem unable to specify the font_file correctly to be able to call
> it in non-interactive mode though. The font file name is actually
> "wmb_.pfm".  I've tried that, with and without the full path
> ("c:\Windows\fonts\wmb_.pfm"), and I've tried the font name by
> itself ("Myriad Bold"). I am able to select the font correctly in
> interactive mode.

You need to specify the full path to the font file. gimp-freetype
doesn't use any .pfm files so you are simply passing the wrong
filename here.


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


Re: [Gimp-user] script-fu text

2004-08-05 Thread Sven Neumann
Hi,

"Mark Andrachek, Jr." <[EMAIL PROTECTED]> writes:

> I've got some script's I'm porting over from 1.2 to 2.0. (I'm using the
> windows version, if it makes a difference.)
> 
> There have been some changes, but I've gotten the scripts working again.
> 
> I had to add an alpha channel to my layers so I could raise/lower them,
> add gimp-edit-fill after gimp-edit-clear because of the alpha layer. I
> also had to change how I created my text layers, using gimp-text-fontname
> instead of gimp-text:
> 
> (tLayer (car (gimp-text myImage -1 0 0 inText -1 TRUE 110 1 "*" "Myriad
> Roman" "bold" "roman" "normal" "*" "*" "*")))
> 
> Changed to:
> (tLayer (car (gimp-text-fontname myImage -1 0 0 inText -1 TRUE 13 1
> "Myriad Bold")))
> 
> Calling it is easier (no foundry or anything to remember), and the text is
> close, but not close enough.

Noone promised that 2.0 would create the same text output. Actually it
has even been promised that it would definitely not create the same
output. Simply because text rendering in 1.2 sucked a lot.
 
> I can actually get it right if I disable Hinting in the text tool options
> if I manually create the image, but there doesn't appear to be any way to
> control the hinting via script-fu. Is there some way I can set it to
> disabled globally so it will be disabled in script-fu too?

No, there is (currently) no way to do that but hacking the gimp
sources.


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


Re: [Gimp-user] script-fu text

2004-08-05 Thread Mark Andrachek, Jr.
Ok, turns out, I need to do both hinting and kerning (the letter spacing
was off too).  So, some searching found that I need to use
plug-in-freetype, which takes care of all of this, and produces *perfect*
text for me, at least in interactive mode.

I seem unable to specify the font_file correctly to be able to call it in
non-interactive mode though. The font file name is actually
"wmb_.pfm".  I've tried that, with and without the full path
("c:\Windows\fonts\wmb_.pfm"), and I've tried the font name by itself
("Myriad Bold"). I am able to select the font correctly in interactive
mode.

Any hints here?

--
Mark R. Andrachek, Jr.
[EMAIL PROTECTED]
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


[Gimp-user] script-fu text

2004-08-05 Thread Mark Andrachek, Jr.
I've got some script's I'm porting over from 1.2 to 2.0. (I'm using the
windows version, if it makes a difference.)

There have been some changes, but I've gotten the scripts working again.

I had to add an alpha channel to my layers so I could raise/lower them,
add gimp-edit-fill after gimp-edit-clear because of the alpha layer. I
also had to change how I created my text layers, using gimp-text-fontname
instead of gimp-text:

(tLayer (car (gimp-text myImage -1 0 0 inText -1 TRUE 110 1 "*" "Myriad
Roman" "bold" "roman" "normal" "*" "*" "*")))

Changed to:
(tLayer (car (gimp-text-fontname myImage -1 0 0 inText -1 TRUE 13 1
"Myriad Bold")))

Calling it is easier (no foundry or anything to remember), and the text is
close, but not close enough.

I can actually get it right if I disable Hinting in the text tool options
if I manually create the image, but there doesn't appear to be any way to
control the hinting via script-fu. Is there some way I can set it to
disabled globally so it will be disabled in script-fu too?

I have to create a *lot* of these images, so help would be much appreciated!

--
Mark R. Andrachek, Jr.
[EMAIL PROTECTED]
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


[Gimp-user] Script-Fu: Text in a transparent image

2003-04-15 Thread Cismaru Nicolae

Hello,
My name is Nicu Cismaru and I am a new user of GIMP. I want to create a script that will generate a transparent gif with my email address. The parameters of the script should be the font and the color. I am using WinGIMP v1.2.3.
I have tried to create a script based on the example Michael Terry gives in its tutorial but I got stucked. I make an image (gimp-image-new), a layer for the image (gimp-layer-new) and a layer for the text (gimp-text-fontname). I resize the image to the dimensions of the text but I do not know what I should do next as this is the first script I am working at.
Thank you for your time, NicuProtect your PC - Click here for McAfee.com VirusScan Online