It is currently Wed Jul 24, 2024 2:29 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 [Windows & Linux the c-file is included]
PostPosted: Tue Feb 04, 2014 2:22 pm  (#21) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
MareroQ wrote:
It is still shown in the Fonts menu (PPM) - but you can not run.
Any tips?

This plug-in is not going to run from that location. It requires a drawable with an active text layer.

_________________
“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 2:46 pm  (#22) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
You know that I am a beginner in coding - before a long road of science - a clue ?

_________________
Image

Slava
Ukraini!


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

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
For the plug-in it to run directly from the fonts dialog, the plug-in would need to create an image with a text layer from the selected font, as the fist step. This might be a good task for Graechan's script.

I do agree the menu location of the Text-Font plug-in should not be under Filters/Beautify. Maybe Filters/Fonts would be a better location.

_________________
“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 3:29 pm  (#24) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2446
I recompiled (linux 32) incorporating the changes shown earlier. While editing changed the location to Tools/TextFont. Works ok from there.

Rods suggestion of changing the menu location by editing pluginrc also works very well.

_________________
Image


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

Joined: May 16, 2010
Posts: 14729
Location: USA
GnuTux wrote:
For the plug-in it to run directly from the fonts dialog, the plug-in would need to create an image with a text layer from the selected font, as the fist step. This might be a good task for Graechan's script.

I do agree the menu location of the Text-Font plug-in should not be under Filters/Beautify. Maybe Filters/Fonts would be a better location.


I can re edit the plugin to show at Filters>Text i do have that menu item already listed for Freetype and other filters. :). Maybe that would be a better spot?

MareroQ i am using the latest SamJ Environment on my desktop. It actually has decided to start working again. YAY! For now anyway. :lol Anyways i have had the environment set up for a long time (same one i used to use before). I also have my Qt build environment back! That's exciting too.

Yes i agree a shout out to SamJ - We need you back Sam! We miss you too. :)

_________________
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 3:52 pm  (#26) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Samj was a genius with doing builds for windows and I've been hoping to to see Samj pop in to this discussion, but maybe Rod could talk me through with what I need for the Win64bit build and I'll give it a try

_________________
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 4:00 pm  (#27) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14729
Location: USA
Ok i re compiled to show the new menu location <Image>/Filters/Text.
Attached with src. :)

Image

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

Graechan just download the latest environment SamJ posted a link to.
If your environment is 64 Bit your plugin will compile as such. :)
Download here - http://www.aljacom.com/~gmic/petit-msys-mingw-gimp28.7z - and unpack to C in Windows directory.
You need to unpack the "small-msys-mingw-gimp28.7z" archive in C:\ for C:\petit-msys-mingw-gimp28
The instructions are in the text file : C:\petit-msys-mingw-gimp28\Readme_petit-msys-mingw-gimp28.txt

Open the Make file and edit it to contain the name of the C src you are compiling. Like so.
################################################################

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:
   /env/compilers_win32/MinGW/bin/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

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


Though yours should read
   /env/msys/bin/gcc.exe


More information here.
viewtopic.php?f=7&t=8222
I suggest read the whole topic 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 [Windows & Linux the c-file is included]
PostPosted: Tue Feb 04, 2014 4:32 pm  (#28) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Thankyou Rod but I'm confused is the link for 32bit or 64bit as the files seem to indicate it's 32bit

_________________
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 4:37 pm  (#29) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
That environment might do both, Graechan. Check the readme.

The Win 64bit environment is here.

http://www.aljacom.com/~gimp/divers.html

More info
viewtopic.php?f=7&t=8459

_________________
“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 5:15 pm  (#30) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
GnuTux Thank you for the link, I'm downloading now

_________________
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 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: 14729
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: 14729
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: 14729
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 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