It is currently 06 Dec 2021, 18:16

• Featuring Members' Works (Image Attachments) •
1: member
2: member
3: member
4: member
5: member

GIMP/GL:  Tutorials | Tips | Questions | Interests | Script Requests
Recommendations:  Index | Top 10
Resources:  🡆 Python-Fu Plug-ins | Scheme-Fu Scripts | GIMP
Python:  Lessons | Questions | Exercises
The Arts:  GIMPed | GIMPed Photos | Other | Contests | Public Domain Images | Isolated Images | Blender
Inkscape
Social:  Say Hello | Anything Goes | Shares | FCSP
Sponsored content for World Food Program

Update to Custom Font Outlines for Gimp 2.10 to Version 0.05

Share your Python Fu Scripts/plug-ins for GIMP here
skinnyhouse
Script Coder
5th Place
2218 Post(s)

Update to Custom Font Outlines for Gimp 2.10 to Version 0.05

Post#1 by skinnyhouse » 19 Sep 2018, 08:15


Custom_Font_Outliner_No_Colour_Selector_v005.py #
(29.23 KiB) Downloaded 149 times
This is a fairly substantial filter update:

The filter is no longer dependent on the Shine and Chisel or Carve plug-ins to work.
There is a new option to add colour to the glossy sheen when adding the shine effect.
There is a new option to choose from a range of modes to create the ‘chiselled’ effect.
The shine and chisel effects now share a common setting for the azimuth option.
I have removed the hard edge chisel option.

Alterations/additions to the filter dialog are highlighted in red:
v005dialog_coded.jpg
v005dialog_coded.jpg # (233.95 KiB) Viewed 4737 times (Thumbnail | Recognize | Sq Tile | LNFI)
The option to add colour to glossed shine works by overlaying the current background colour onto the gloss. Depending on the colour used the results can vary from the subtle to the ridiculous - as shown below (From the left - original white, subtle, gaudy, ridiculous):
colour_in_gloss.png
colour_in_gloss.png # (136.6 KiB) Viewed 4737 times (Thumbnail | Recognize | Sq Tile | LNFI)
I have added a number of modes to use with the chisel effect – some custom fonts require a different mode treatment from others - just a question of playing about really. I have used a slightly greater amount of gaussian blur with the examples below – although it could have probably done with even more:
Bevel_Modes.png
Bevel_Modes.png # (367.86 KiB) Viewed 4737 times (Thumbnail | Recognize | Sq Tile | LNFI)
Bevel Mode Key
1 – original character. 2 – Overlay Mode. 3 - Overlay Mode (No post blur). 4 – Multiply Mode. 5 – Darken Only Mode. 6 – HSV Value Mode. 7 – Divide Mode. 8 – Dodge Mode. 9 – Hardlight Mode. 10 – Softlight Mode. 11 – Grain Extract Mode. 12 – Grain Merge Mode. 13 – Vivid Light Mode. 14 - Hard Mix Mode. 15 – Luminance Mode

Issabella
Script Tester
3rd Place
3595 Post(s)

Post#2 by Issabella » 19 Sep 2018, 12:49


Thank you so much Skinnyhouse for this new version and your great experimentation to get it. :gimp_clap:
Issabella

Don’t be afraid to start over. It’s a new chance to rebuild what you want.

Pat625
Tutorial Creator
2nd Place
4512 Post(s)

Post#3 by Pat625 » 19 Sep 2018, 18:16


You amaze me with all you text effect scripts, Skinnyhouse!

skinnyhouse
Script Coder
5th Place
2218 Post(s)

Post#4 by skinnyhouse » 19 Sep 2018, 18:38


Thank you Issabella and Pat for your kind words. It never ceases to amaze me what Gimp is capable of doing.

skinnyhouse
Script Coder
5th Place
2218 Post(s)

Post#5 by skinnyhouse » 19 Sep 2018, 20:08


A little more detail on the modes used to create the bevelled chisel cut effect.

Overlay mode works fine on a range of font faces but on single colour faces the effect is barely visible.

The original custom font using the default settings and with post gaussian blur set to 5.0:
A_Split_Original.png
A_Split_Original.png # (45.99 KiB) Viewed 4708 times (Thumbnail | Recognize | Sq Tile | LNFI)
And using Overlay mode - a pathetic result - you can just make out the bevel:
A_Split_Overlay.png
A_Split_Overlay.png # (62.14 KiB) Viewed 4708 times (Thumbnail | Recognize | Sq Tile | LNFI)
Grain Extract mode is a good choice:
A_Split_Grain_Extract.png
A_Split_Grain_Extract.png # (89.92 KiB) Viewed 4708 times (Thumbnail | Recognize | Sq Tile | LNFI)
But I prefer Vivid Light mode:
A_Split_Vivid.png
A_Split_Vivid.png # (98.38 KiB) Viewed 4708 times (Thumbnail | Recognize | Sq Tile | LNFI)
Or Luminance mode:
A_Split_Luminance.png
A_Split_Luminance.png # (81.76 KiB) Viewed 4708 times (Thumbnail | Recognize | Sq Tile | LNFI)

Alan
Forum Member
4th Place
2646 Post(s)

Post#6 by Alan » 20 Sep 2018, 11:05


Thank you very much Skinnyhouse for all your work. :learned_something: :gimp_clap:

skinnyhouse
Script Coder
5th Place
2218 Post(s)

Post#7 by skinnyhouse » 20 Sep 2018, 17:58


The bevelled edge produced by the chisel effect uses the selective gaussian plug-in to reduce unwanted artefacts. This is a slower form of blurring than other types but can be, I think, more effective. (You can test the slowness out by setting the blur radius to 100 if you feel brave.) The values may need adjusting - according to the size and design of the font face - to get the best look.

Gimp help provides the following information about the plug-in;
Selective Gaussian Blur plug-in doesn't act on all pixels: blur is applied only if the difference between its value and the value of the surrounding pixels is less than a defined Delta value. So, contrasts are preserved because difference is high on contrast limits
Some examples may help illustrate the effect of the blur and delta settings in the Outline filter. The images are all taken from a 505 x 719 character using a bevel set to 100 pixels wide.

The first detail, with blurring set to zero, clearly shows artefacts. It may be that this effect matches your requirements, but they are usually undesirable at larger font sizes (this font was originally generated at 600 points):
Black_Blur_Blur 0 Delta 0.png
Black_Blur_Blur 0 Delta 0.png # (13 KiB) Viewed 4672 times (Thumbnail | Recognize | Sq Tile | LNFI)
The second example shows the default settings of the Blur Radius at 1.7 and a maximum delta of 64. There is a little improvement with this particular image, but not much:
Black_Blur_Blur 0 Delta 0.png
Black_Blur_Blur 0 Delta 0.png # (13 KiB) Viewed 4672 times (Thumbnail | Recognize | Sq Tile | LNFI)
Time to rack up the blur radius factor to 4.0 with the default maximum delta of 64. The artefacts have been reduced here but the bevel edge has been softened too. Of course this may turn out to suit your design requirements:
Black_Blur_Defaults.png
Black_Blur_Defaults.png # (11.6 KiB) Viewed 4672 times (Thumbnail | Recognize | Sq Tile | LNFI)
Raising the maximum delta to 128 removes even more artefacts, but also displays a softened bevelled edge:
Black_Blur_Blur 4 Delta 128.png
Black_Blur_Blur 4 Delta 128.png # (10.26 KiB) Viewed 4672 times (Thumbnail | Recognize | Sq Tile | LNFI)
Keeping the maximum delta at 128 and raising the blur radius to 10 produces an even softer bevel although it appears to be free of almost all artefacts.
Black_Blur_Blur 10 Delta 128.png
Black_Blur_Blur 10 Delta 128.png # (10.11 KiB) Viewed 4672 times (Thumbnail | Recognize | Sq Tile | LNFI)
Reducing the maximum delta to 64 seems to produce much the same effect:
Black_Blur_Blur 10 Delta 64.png
Black_Blur_Blur 10 Delta 64.png # (8.03 KiB) Viewed 4672 times (Thumbnail | Recognize | Sq Tile | LNFI)
Don't lose hope - because reducing the maximum delta to 24 reveals a much cleaner bevelled edge. The effect I was after:
Black_Blur_Blur 10 Delta 24.png
Black_Blur_Blur 10 Delta 24.png # (5 KiB) Viewed 4672 times (Thumbnail | Recognize | Sq Tile | LNFI)
But be careful - reducing the maximum delta too much will bring back artefacts; here the delta has been reduced to 8:
Black_Blur_Blur 10 Delta 8.png
Black_Blur_Blur 10 Delta 8.png # (11.34 KiB) Viewed 4672 times (Thumbnail | Recognize | Sq Tile | LNFI)
I think the lesson to learn is to use a very small number of characters with the filter to test out the settings that reduce unwanted artefacts to the level you are happy to live with. Dark font faces often need different settings to light font faces.


GIMP/GL:  Tutorials | Tips | Questions | Interests | Script Requests
Recommendations:  Index | Top 10
Resources:  🡆 Python-Fu Plug-ins | Scheme-Fu Scripts | GIMP
Python:  Lessons | Questions | Exercises
The Arts:  GIMPed | GIMPed Photos | Other | Contests | Public Domain Images | Isolated Images | Blender
Inkscape
Social:  Say Hello | Anything Goes | Shares | FCSP

Post Reply New Topic
  • Similar Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 10 guests