It is currently Wed Jul 24, 2024 2:21 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 63 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject: Re: hejian's text-font plugin V1.2
PostPosted: Wed Feb 05, 2014 6:50 pm  (#41) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14729
Location: USA
Thanks Graechan. :)

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: hejian's text-font plugin V1.2
PostPosted: Wed Feb 05, 2014 7:01 pm  (#42) 
Offline
GimpChat Member
User avatar

Joined: Jul 06, 2013
Posts: 2607
Location: California
Is there an update for windows 64 bit?


Top
 Post subject: Re: hejian's text-font plugin V1.2
PostPosted: Wed Feb 05, 2014 7:08 pm  (#43) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
mackenzieh wrote:
Is there an update for windows 64 bit?

Hopefully soon

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: hejian's text-font plugin V1.2
PostPosted: Wed Feb 05, 2014 7:24 pm  (#44) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Rod wrote:
Thanks Graechan. :)

Rod I've placed the petit-msys-mingw-gimp28 environment in my C:/ drive as below
Image

and the Makefile reads

################################################################

B_CFLAGS = -I/mingw/include -I/mingw/x86_64-w64-mingw32/include -I/python/include -pipe -O3 -mms-bitfields -march=i686 -s
B_LDFLAGS = -L/mingw/lib -L/mingw/x86_64-w64-mingw32/lib -mwindows
GIMPARGS = $(shell gimptool-2.0 --cflags --libs)
PCREARGS = $(shell pcre-config --cflags --libs)

make:
   /mingw/bin/i686-w64-mingw32-gcc.exe -o vignetting.exe -Wall -O3 -Wno-unused-variable -Wno-pointer-sign -Wno-parentheses vignetting.c $(B_CFLAGS) $(B_LDFLAGS) $(GIMPARGS) $(PCREARGS) -DGIMP_DISABLE_DEPRECATED

################################################################

Rod will this compile vignetting for 64bit and if so what do I do next

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: hejian's text-font plugin V1.2
PostPosted: Wed Feb 05, 2014 8:23 pm  (#45) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14729
Location: USA
Graechan wrote:
Rod wrote:
Thanks Graechan. :)

Rod I've placed the petit-msys-mingw-gimp28 environment in my C:/ drive as below
[ Image ]

and the Makefile reads

################################################################

B_CFLAGS = -I/mingw/include -I/mingw/x86_64-w64-mingw32/include -I/python/include -pipe -O3 -mms-bitfields -march=i686 -s
B_LDFLAGS = -L/mingw/lib -L/mingw/x86_64-w64-mingw32/lib -mwindows
GIMPARGS = $(shell gimptool-2.0 --cflags --libs)
PCREARGS = $(shell pcre-config --cflags --libs)

make:
   /mingw/bin/i686-w64-mingw32-gcc.exe -o vignetting.exe -Wall -O3 -Wno-unused-variable -Wno-pointer-sign -Wno-parentheses vignetting.c $(B_CFLAGS) $(B_LDFLAGS) $(GIMPARGS) $(PCREARGS) -DGIMP_DISABLE_DEPRECATED

################################################################

Rod will this compile vignetting for 64bit and if so what do I do next


Graechan place the text-font.c file in the c:/petit-msys-mingw-gimp28 directory

change the Makefile to read
################################################################

B_CFLAGS = -I/mingw/include -I/mingw/x86_64-w64-mingw32/include -I/python/include -pipe -O3 -mms-bitfields -march=i686 -s
B_LDFLAGS = -L/mingw/lib -L/mingw/x86_64-w64-mingw32/lib -mwindows
GIMPARGS = $(shell gimptool-2.0 --cflags --libs)
PCREARGS = $(shell pcre-config --cflags --libs)

make:
   /mingw/bin/i686-w64-mingw32-gcc.exe -o text-font.exe -Wall -O3 -Wno-unused-variable -Wno-pointer-sign -Wno-parentheses text-font.c $(B_CFLAGS) $(B_LDFLAGS) $(GIMPARGS) $(PCREARGS) -DGIMP_DISABLE_DEPRECATED

################################################################


Open the msys terminal (bat exe file) and type cd /env and then hit enter
Type make and hit enter. The plugin will be in the same directory as the c src file. Or should be. :)
Place it in the plugin folder and test. Upload - DONE! :bigthup

mingw is actually the base/c directory.

c:/petit-msys-mingw-gimp28 /env
c:/petit-msys-mingw-gimp28/base/c /mingw
c:/petit-msys-mingw-gimp28/base/perl /perl
c:/petit-msys-mingw-gimp28/base/c/Python /python
c:/petit-msys-mingw-gimp28/base/c/tmp /tmp
c:/petit-msys-mingw-gimp28/compilers_win32/MinGW /w32

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: hejian's text-font plugin V1.2
PostPosted: Wed Feb 05, 2014 8:58 pm  (#46) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Sorry Rod that didn't work for me
Image

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: hejian's text-font plugin V1.2
PostPosted: Thu Feb 06, 2014 12:34 am  (#47) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
But the 64bit environment files did :jumpclap :jumpclap :jumpclap :jumpclap :jumpclap :jumpclap
I'm a happy old Fella, perseverance won out

Windows 64bit file now available, see initial post

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: hejian's text-font plugin V1.2
PostPosted: Thu Feb 06, 2014 4:11 am  (#48) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
:wh Nice job, Graechan.

I've setup my Fedora 20 system to compile Linux 32bit plug-ins, as well. I tested it and it runs just fine on my 64bit system, so it should work on other Linux distributions, both 64bit & 32bit, unless the Linux Distribution is just too old and outdated. Removed in favor of Rich2005's version.

Rod wrote:
Maybe we should clean up this thread to list ONLY newer compiles?

Ok. Now that Graechan has updated the first post in this thread, I've deleted all the old attachments.

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: hejian's text-font plugin V1.2
PostPosted: Thu Feb 06, 2014 4:29 am  (#49) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2446
If I had not stopped to update my AntiX installation I would have sneaked in before you :)

FWIW this is the v1.2 compiled in a 32 bit linux

Added to the 1st post in this thread

_________________
Image


Top
 Post subject: Re: hejian's text-font plugin V1.2
PostPosted: Thu Feb 06, 2014 4:38 am  (#50) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
You were :ninja Rich. :hehe

Considering you compiled in a native 32bit environment, I think we should just go with your version. Mine is a little larger @ 18.3kb

Btw - I tested your 32bit version on my 64bit system and it runs fine. :bigthup

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: hejian's text-font plugin V1.2
PostPosted: Thu Feb 06, 2014 8:22 am  (#51) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14729
Location: USA
Sweet Graechan. Nicely done. :)
I see that Lyle had a different environment also. Mine should work for both 32 and 64 (if i had 64 bit)

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: hejian's text-font plugin V1.2
PostPosted: Thu Feb 06, 2014 6:38 pm  (#52) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Thank you GnuTux for tidying up the thread by removing old downloads and adding the 4th attachment
my only query about V1.2 is does the Message-hadler need to be reset to the original setting after changing it to 'message box'
or do the conditions set up while running the plugin apply only during the plugin

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: hejian's text-font plugin V1.2
PostPosted: Thu Feb 06, 2014 7:18 pm  (#53) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
You're right, Graechan. The plug-in should be saving and restoring the message handler state.

Here's the update to V1.3 to do that...

static void
text_font (GimpDrawable *drawable)
{
  if (tfvals.font != 0) {

    int msg_handler =  gimp_message_get_handler ();

    gimp_text_layer_set_font (drawable->drawable_id, tfvals.font);
    gimp_context_set_font (tfvals.font);
    gimp_message_set_handler (0);
    g_message("Active Font Changed To: %s\n",
               tfvals.font );
    gimp_message_set_handler (msg_handler);
  }
}


Updates in 1st post of this thread

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: hejian's text-font plugin V1.2
PostPosted: Thu Feb 06, 2014 8:12 pm  (#54) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
I apologize GnuTux for bringing this up so late but I think slowly (blame it on Old Age) I will have the thread amended shortly with Linux and Windows compiles

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Last edited by Graechan on Thu Feb 06, 2014 10:14 pm, edited 1 time in total.

Top
 Post subject: Re: hejian's text-font plugin V1.2
PostPosted: Thu Feb 06, 2014 8:21 pm  (#55) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
Well, at least you caught the problem. I didn't even think about it. :hehe

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: hejian's text-font plugin V1.2
PostPosted: Thu Feb 06, 2014 9:02 pm  (#56) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14729
Location: USA
Windows 32 bit with fix (V-1.3)

Updates in 1st post of this thread

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: hejian's text-font plugin V1.3
PostPosted: Thu Feb 06, 2014 9:33 pm  (#57) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
thanks Rod for the win32 1.3 compile
GnuTux the thread has been amended to 1.3 with all the new Linux and Windows files,thank you for the 'Code restructuring'
(it's only a bug if someone notices before you) :hehe

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: hejian's text-font plugin V1.3
PostPosted: Thu Feb 06, 2014 9:35 pm  (#58) 
Offline
GimpChat Member
User avatar

Joined: Jun 02, 2013
Posts: 2075
Very cool. Like this one a lot.

_________________
Image


Top
 Post subject: Re: hejian's text-font plugin V1.3
PostPosted: Fri Feb 07, 2014 12:35 pm  (#59) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
Side note - thanks to the plugin again carefully you will see errors for Gimp 2.8 (Wingdings and other ...)
http://gimpchat.com/viewtopic.php?f=8&t=5396
Old thread - but the problem is still unsolved for 2.8 - why?


Attachments:
Error in 2.8.png
Error in 2.8.png [ 85.07 KiB | Viewed 1220 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: hejian's text-font plugin V1.3
PostPosted: Fri Feb 07, 2014 5:08 pm  (#60) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14729
Location: USA
MareroQ wrote:
Side note - thanks to the plugin again carefully you will see errors for Gimp 2.8 (Wingdings and other ...)
http://gimpchat.com/viewtopic.php?f=8&t=5396
Old thread - but the problem is still unsolved for 2.8 - why?

MareroQ are those SVG/Vector bats (wingdings) you are trying to show in the viewer?

On a side note:
In Onkels version of GIMP-2.8.11 i can not get colorize to work either. It crashes GIMP every time. So all scripts/plug-ins that use those PDB calls are useless until that get's fixed. Could that be libcairo?

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
Post new topic Reply to topic  [ 63 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) GEGL Text Style Collection - plugin with many fancy text styles

14

No new posts Attachment(s) GEGL ROCK TEXT 2 - Advance rock text plugin -requires Gimp 2.10.32+

8

No new posts Attachment(s) Using Custom Font Faux 3D with text layers

2

No new posts Looking for the Text Stamp Plugin/Script

4

No new posts Attachment(s) GEGL Crayon Text plugin

2



* Login  



Powered by phpBB3 © phpBB Group