It is currently Thu Apr 25, 2024 2:22 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 63 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: hejian's text-font plugin V1.3
PostPosted: Sun Feb 02, 2014 8:00 pm  (#1) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
I'd like to thank GnuTux for the plugin editing and Rod for his the assistance with the win compile

To be honest this seems to be a long forgotten Beautify pkg plugin
This plugin has been compiled for Windows and Linux

Plugin location is now Filters/Text

Updated 6/2/2014 With this release the script is now redundant so please delete the script

Updated to V1.3 7/2/2014↓for Code restructuring

Attachment:
text-font-V1.3_Linux_x32_x64.zip [17.18 KiB]
Downloaded 199 times

Attachment:
text-font-V1.3_Win32bit.zip [9.54 KiB]
Downloaded 211 times

Attachment:
text-font-V1.3_Win64bit.zip [12.59 KiB]
Downloaded 1718 times



Initial text layer
Image

text-font Menu [just click the desired font]
Image

text layer after the font is changed [note the new font is now the active font and a message is displayed giving it's name]
Image
Image

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


Last edited by Graechan on Thu Feb 06, 2014 9:16 pm, edited 10 times in total.

Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: hejian's text-font plugin [win64bit and c-file]
PostPosted: Sun Feb 02, 2014 9:27 pm  (#2) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
Works fine in 64bit Linux. What's the difference between the Plug-in and your script, Graechan?

Image

_________________
“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 [win64bit and c-file]
PostPosted: Sun Feb 02, 2014 10:09 pm  (#3) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
GnuTux The plugin gives no indication of what the new font is so I wrote the script to do this and to set the new font as the active font
I find the script and the plugin very useful for looking for a font when you can't remember it's name but know what your looking for
If you look at the bottom of the c-file you will see that everything extra the script does could be Added to the Plugin If you spoke C

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


Top
 Post subject: Re: hejian's text-font plugin [win64bit and c-file]
PostPosted: Sun Feb 02, 2014 10:17 pm  (#4) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
Graechan wrote:
GnuTux The plugin gives no indication of what the new font is so I wrote the script to do this and to set the new font as the active font

Those are good additions. :bigthup

C is just like most other programming languages, just a little different syntax. All the underlying concepts are the same. My first introduction to C was Aztec C, back in the late 80s. It produced really tight Assembly code. When used along with DSD (Dynamic Screen Debugger), it was the cat's meow. :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 [windows & Linux 64bit and c-file]
PostPosted: Sun Feb 02, 2014 10:34 pm  (#5) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Thank you GnuTux for the Linux file, have you looked at the bottom of the c-file and seen where I'd like to make the changes

_________________
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 64bit and c-file]
PostPosted: Sun Feb 02, 2014 10:51 pm  (#6) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
I haven't looked at it yet, but I will check it out.

_________________
“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 [Win64bit & Linux the c-file is included
PostPosted: Mon Feb 03, 2014 4:20 am  (#7) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2424
That is an interesting plug-in, a quick try and I can see its usefulness.

To add to the collection a compiled for linux 32bit file.

The plug-in compiles easily (as root) with gimptool-2.0 --build text-font.c
For various reason, I compile these in debian (AntiX) and use them in PClinuxOS - very different flavours of linux.
Shows the forgiving nature of Gimp plug-ins ;) I think a better than 50% chance of it working on a 32 bit installation, but no guarantee.
Runs very nicely from ~/gimp-2.8/plug-ins

See 1st post for latest update

_________________
Image


Top
 Post subject: Re: hejian's text-font plugin [Win64bit & Linux the c-file is included
PostPosted: Mon Feb 03, 2014 9:18 am  (#8) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Text-Font binary for Windows 32 bit.
Tested in GIMP-2.8.10 and seems to run fine.
I compiled this in Windows Vista so it should work in XP also. Not sure about any other. :)
Attached with c file src. Install into your USERNAME/.gimp-2.8/plug-ins folder and restart GIMP.
Location in menus is - Filters>Beautify>Text Font Select
NOTE: If you have many fonts prepare to wait. :lol (i had to wait 5 minutes for the text-font binary to load all the fonts)

Image

See 1st post for latest update.

_________________
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 [Win64bit & Linux the c-file is included
PostPosted: Mon Feb 03, 2014 9:32 am  (#9) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
thanks Rod
tested, it works
(btw: do you know why its menu is called "beautify"?)

_________________
"Where am I ?"


Top
 Post subject: Re: hejian's text-font plugin [Win64bit & Linux the c-file is included
PostPosted: Mon Feb 03, 2014 9:41 am  (#10) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
dinasset wrote:
thanks Rod
tested, it works
(btw: do you know why its menu is called "beautify"?)


My only guess is that it was supposed to be part of the Beautify plugin suite at one time and got disregarded.
You can change the location by editing the pluginrc file.
1) Shut down GIMP
2) Open the pluginrc file in NOTEPAD ++.
3) Search <Image>/Filters/Beautify.
4) Then just change Beautify (or the whole line) to whatever you want. Save the file.
5) Restart GIMP. :)
The filter should now be located where you want it.

_________________
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 [Win64bit & Linux the c-file is included
PostPosted: Mon Feb 03, 2014 9:42 am  (#11) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Graechan can you edit your script to center the font on the image layer? It doesn't seem to be doing that.

_________________
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 [Win64bit & Linux the c-file is included
PostPosted: Mon Feb 03, 2014 2:22 pm  (#12) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
@Graechan - Been looking over the plug-in. Reading the C code is not the problem. Figuring out how C plug-ins interface with GIMP is where the learning curve is. It doesn't look too bad, though. It is something I'm interested in pursuing.

There's some pretty good "getting started" info here.
http://developer.gimp.org/index.html

_________________
“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 [Win64bit & Linux the c-file is included
PostPosted: Mon Feb 03, 2014 4:26 pm  (#13) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2246
Location: Poland
Thanks for sharing ideas and solutions !

According to me - Gimp version 2.8. ? - This functionality has been enabled ( and expanded) - so I guess so - further development was abandoned ...

This plugin ( in this version ) offers only more fonts in the preview - is not enough.
If it were possible to add more features ( the script or plugin ) - it's my wish list would be very long:

Step 1 (the most important ) :
At any layer ( context menu ) creates a text layer - with the fields :
- Text (to be introduced )
- Font name
- Font size ;
- Font color ;
- Position.
..........................................................................................................................
Step 2 .. 3 .. 4 ( a lot of ideas - but it does not matter without the implementation of step 1 )
..........................................................................................................................
Last step - check the look for different fonts (call text- font.exe )


Attachments:
Test of possibility 1.png
Test of possibility 1.png [ 189.79 KiB | Viewed 1341 times ]
Test of possibility 2.png
Test of possibility 2.png [ 183.02 KiB | Viewed 1341 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: hejian's text-font plugin [Win64bit & Linux the c-file is included
PostPosted: Mon Feb 03, 2014 4:39 pm  (#14) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Thank you to all who helped with composing 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 [Windows & Linux the c-file is included]
PostPosted: Tue Feb 04, 2014 12:17 am  (#15) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
I have updated the zip to include the correct plugin for your particular operating system
another thank you to all who assisted in this endeavor
I have also tested the plugin in a simple script

_________________
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 12:23 am  (#16) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
Graechan,

I've modified the C plug-in to add the functionality you requested. The plug-in will now make the selected font active and outputs a message.

You will need to compile it for Windows.

I'm attaching the updated source code and the binary for Linux_x64. :bigthup

Latest update located here

_________________
“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 12:38 am  (#17) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Thank you GnuTux Hopefully Rod can compile for Windows, should it be named text-font-001 or something similiar so that this version is different

_________________
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 12:42 am  (#18) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
Shouldn't the name remain the same, so it can be just overwritten in the plug-ins folder? Having two versions of the same plug-ins, with different names, can cause PDB/Menu registration problems.

I've updated the text in the source code to note that updates have been made.

Is there not a Free Open Source "C" compiler for Windows? Once you get the C compiler and the GIMP libs/deps installed, you should be able to use gimptool to compile small plug-ins.

_________________
“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 9:26 am  (#19) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Thanks Tux.

Screenshot.
Image

Image

Works in Windows Vista 32 bit Tux. :)

_________________
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 1:03 pm  (#20) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2246
Location: Poland
Again Thanks for Graechan, GnuTux and Rod.
In this composition I became of hope for ideas for new solutions.
Guided by his own idea - before compiling in Windows
I changed this:
   gimp_plugin_menu_register (PLUG_IN_PROC, "<image> / Filters / Beautify");

on

gimp_plugin_menu_register (PLUG_IN_PROC, "<Fonts> /
")

It is still shown in the Fonts menu (PPM) - but you can not run.
Any tips?

ps. ROD - from which the build environment are you using?
You built yourself? - If (like me) use of building Samji - for which thanks are due after each successful compilation
Scream out loud - SAMJI BACK


Attachments:
Why inability to start.png
Why inability to start.png [ 10.52 KiB | Viewed 1272 times ]

_________________
Image

Slava
Ukraini!
Top
Post new topic Reply to topic  [ 63 posts ]  Go to page 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) Create an Underwater Text plugin

9

No new posts Attachment(s) Medieval Armor Text plugin

14


cron

* Login  



Powered by phpBB3 © phpBB Group