It is currently Sun May 05, 2024 6:06 am


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 [Windows & Linux the c-file is included]
PostPosted: Tue Feb 04, 2014 7:19 pm  (#31) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
It's just to complicated for this old fella
I tested Rods updated Win32bit file and it didn't work
I'm not going well this morning

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


Top
 Post subject: Re: hejian's text-font plugin [Windows & Linux the c-file is included]
PostPosted: Tue Feb 04, 2014 8:14 pm  (#32) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Graechan wrote:
It's just to complicated for this old fella
I tested Rods updated Win32bit file and it didn't work
I'm not going well this morning


See here Graechan.
viewtopic.php?f=9&t=9658&start=10#p126092
Look at screenshots especially the one showing the docked error console. :) It works.
The environment SamJ created makes it VERY easy to compile plugins for GIMP.
The version 4 environment is for both 32 and 64 bit compiles and includes GIT and autogen. I don't have a 64 bit system so i can not compile 64 bit.

INSTRUCTIONS-
If you open the msys bat file (which opens a DOS window) and type cd /env this will change the directory to your working environment. Now just type make after you edit the Makefile included. The rest is done by the compilers. :) Then after compile the exe will be located in the C:\petit-msys-mingw-gimp28 directory. Just throw it in your plug-ins folder and test it.

Easy Peasy.

_________________
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 [Windows & Linux the c-file is included]
PostPosted: Tue Feb 04, 2014 8:17 pm  (#33) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
If you have any compile errors it usually means the Makefile has the wrong directory for the proper compilers. You will need to edit that line if that is the case.

_________________
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 [Windows & Linux the c-file is included]
PostPosted: Tue Feb 04, 2014 9:15 pm  (#34) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Thanks Rod I'll try again tomorrow, just for practice and as a confidence builder

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


Top
 Post subject: Re: hejian's text-font plugin [Windows & Linux the c-file is included]
PostPosted: Tue Feb 04, 2014 10:15 pm  (#35) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
You guys are right. If the error console is active, the message is displayed there. I've updated the plug-in to force the message to the screen in all cases.

static void
text_font (GimpDrawable *drawable)
{
  if (tfvals.font != 0) {
    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 );
  }
}

I've added Rod's change to the menu location, as well.
The plug-in will now appear under: Filters/Text/Text font select..

Also, I've started adding version numbers to this plug-in to keep in sync with the updates.

See 1st post in this thread for the latest version.

_________________
“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 [Windows & Linux the c-file is included]
PostPosted: Tue Feb 04, 2014 10:26 pm  (#36) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Thank You for the update, can't wait for the Win compiles to test, I've enjoyed the project and will test the plugin in a script asap :jumpclap

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


Top
 Post subject: Re: hejian's text-font plugin [Windows & Linux the c-file is included]
PostPosted: Tue Feb 04, 2014 10:43 pm  (#37) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
I've enjoyed this project, as well. Getting a chance to play with a C plug-in has been fun.

You need to get your Windows development environment working, Graechan. :cool

_________________
“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 [Windows & Linux the c-file is included]
PostPosted: Tue Feb 04, 2014 11:36 pm  (#38) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
As soon as I get a windows compile I will update the thread to V1.2

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


Top
 Post subject: Re: hejian's text-font plugin [Windows & Linux the c-file is included]
PostPosted: Wed Feb 05, 2014 6:56 am  (#39) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Windows 32 bit V-1.2 :)

Image

Image

_________________
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 6:28 pm  (#40) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
text-font-V1.2 has been posted, Note! change in Menu location to Filters/Text also this version makes the script Font Selector redundant so remember to please delete script
compiles for Win64bit and Linux32bit still needed so please respond if you can assist

_________________
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 6:50 pm  (#41) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
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: 2606
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: 14709
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: 2425
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 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 Attachment(s) Medieval Armor Text plugin

14

No new posts Attachment(s) Steel Mesh Text plugin

8



* Login  



Powered by phpBB3 © phpBB Group