It is currently 29 May 2022, 10:51

• Featuring Members' Images •
Could be related to 'Custom Font Light and Shade for Gimp 2.10 Initial Release'
skinnyhouse
skinnyhouse
skinnyhouse
skinnyhouse
Pat625

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

Custom Font Light and Shade for Gimp 2.10 Initial Release

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

Custom Font Light and Shade for Gimp 2.10 Initial Release

Post#1 by skinnyhouse » 10 Dec 2021, 14:51


Edited @ 20:50 12/10/2021 wrong py file plug-in uploaded - corrected now.

Apologies for the verbose nature of this information but I will do another visual guide soon.

This is an initial release at an attempt to create highlights and/or shadows for use with custom fonts. The plug-in uses two methods: one tries to steal the selected colours from existing characters to use as shading and the other requires the use of a set of paths to add shading to characters.
Custom_Font_Light_and_Shade.py #
(21.6 KiB) Downloaded 67 times
There are two part custom font files in the accompanying folder for you to play with.

Part_Like_Snow_Caps_Flat_Embossed
Part_Like_Snow_Caps_Blue

Other resources for even more playing.

Like_Snow_Shading_Paths (capitals only)
Like_Snow_Caps_Whitebase

The shading paths file needs to be imported via the path tab with Import Path…
For some strange reason you will need to make all files visible to see the file that Gimp itself created.
Resources.zip #
(522.14 KiB) Downloaded 64 times
The plug-in can be located via the menu option:

Filters>>Custom Font Tools>>Custom Font Light and Shade...

The dialog for this release:
Dialog_initial_release.jpg
Dialog_initial_release.jpg # (54.82 KiB) Viewed 2103 times Thumbnail
Using the filter:

Style option 1: New characters from selected colour

You will get probably get better results if you work with a set of grey characters – you could always quickly convert a coloured font with FaceMaker, using a grey coloured image layer and one of the colour modes.
Flat_Embossed.png
Flat_Embossed.png # (126.07 KiB) Viewed 2123 times Thumbnail
Open the embossed characters provided or another set of characters (or use a single character as a test) that you want to play with and use the eye-dropper tool to select the colour from one of the characters that you want to extract. Set the colour threshold to a fairly large value and click on ‘OK’.

Check out the result. If the selected areas that make up the new characters are too thin hit the Undo key combination (Ctrl + Z), increase the threshold value and try again. You can also adjust the feather radius amount to your liking.

If you find that the results seems to produce a lot of intermediate greys don’t be alarmed. This can be used to good effect when applied to another custom font with FaceMaker by setting the mode to Grainmerge or Softlight. Test them out before discarding


You can create a set of highlights by selecting a light shades and save them as a new set of characters; these can then be applied to any other variant of the same custom font. You can also create a dark shaded version for the shadows and either save them as a separate set of characters and/or combine them with highlight characters using the combine options in FaceMaker.

Some example output:

Light shades for highlights
Light_Shade.png
Light_Shade.png # (141 KiB) Viewed 2123 times Thumbnail
Some dark shades for shadows
Dark_Shade.png
Dark_Shade.png # (155.28 KiB) Viewed 2123 times Thumbnail
A combined light and dark shading file
Combined_Shade.png
Combined_Shade.png # (218.39 KiB) Viewed 2123 times Thumbnail
Take a set of flat patterned characters...
Patterned.png
Patterned.png # (391.93 KiB) Viewed 2123 times Thumbnail
and apply the combined shading file with FaceMaker using Grainmerge mode...
Applied_Combined_Shade.png
Applied_Combined_Shade.png # (423.85 KiB) Viewed 2123 times Thumbnail

Style Option 2: Remove selected colour from characters

This option does exactly what it says and removes areas of colour from the characters. I am not sure how useful it is but it seemed like a good idea to include it just in case.


Style Option 3: Add shading to characters with paths

This option uses a set of user-shaped named paths to add the colour and blurs this added colour before adding it to the existing characters. It is quite an investment in time to create the paths but they do produce gentle, rounded areas of shade or light; if you have a particular font that you return to often, you may find this filter useful.

For this small example open the example font (Part_Like_Snow_Caps_Blue) from the resources folder. This example already has a set of highlight/shading paths as well as the plain blue characters.
ToolDock.png
ToolDock.png # (21.25 KiB) Viewed 2123 times Thumbnail
Set the foreground colour to apply with the filter, stick with the default options and click on ‘OK’. If you want to add more focus to the areas you can reduce the amount of blur. There are many variations to be created by changing the user mode. There is also a trim option to use with the characters if you wish to remove any unwanted halos.

Creating the paths:

Use the path tool to create a path along the parts of the edges of the character where you want the shading to be applied. Rename the path with the character followed by a space and the word ‘shade’ e.g. ‘A shade’. The plug-in will then recognise the path and be able to use it.
Path.png
Path.png # (25.74 KiB) Viewed 2123 times Thumbnail
Some examples:

Using various foreground colours...
Colour.png
Colour.png # (68.54 KiB) Viewed 2123 times Thumbnail
Changing the opacity amount...
Opacity.png
Opacity.png # (72.13 KiB) Viewed 2123 times Thumbnail
Changing the blur amount...
Blur.png
Blur.png # (67.36 KiB) Viewed 2123 times Thumbnail
Changing the constrain value...
Constrain.png
Constrain.png # (54.38 KiB) Viewed 2123 times Thumbnail
And finally changing the mode used...
Mode.png
Mode.png # (76.72 KiB) Viewed 2123 times Thumbnail
Have fun
Last edited by skinnyhouse on 10 Dec 2021, 20:58, edited 2 times in total.

gimpturkey
Newly Registered
12th Place
1151 Post(s)

Post#2 by gimpturkey » 10 Dec 2021, 17:05


I want to know this. However, I am having trouble understanding the instruction.
GIMP Learn rocks...

skinnyhouse
Script Coder
5th Place
2515 Post(s)

Post#3 by skinnyhouse » 10 Dec 2021, 20:53


:tick_tock: Am preparing a non-verbal help.

gimpturkey
Newly Registered
12th Place
1151 Post(s)

Post#4 by gimpturkey » 10 Dec 2021, 21:01


skinnyhouse wrote:
10 Dec 2021, 20:53
:tick_tock: Am preparing a non-verbal help.
:giggle_purple: :aw_shucks_purple: :yay_yay_purple:
GIMP Learn rocks...

skinnyhouse
Script Coder
5th Place
2515 Post(s)

Post#5 by skinnyhouse » 10 Dec 2021, 22:09


Style 1 Easy Guide

Embossed custom font resource for use with style 1 guide

Download and extract the file before saving to disc.
Like_Snow_Caps_Flat_Emboss.7z #
(1.48 MiB) Downloaded 41 times
Open the Flat Emboss characters in Gimp:
01_Style_1.jpg
01_Style_1.jpg # (37.55 KiB) Viewed 2096 times Thumbnail
Save the new file with a suitable name

Open the Flat Emboss characters in Gimp again (or press Ctrl + Z):
02_Style_1.jpg
02_Style_1.jpg # (36.15 KiB) Viewed 2096 times Thumbnail
Save the new file with a suitable name

Return to the first custom font and open Custom Font FaceMaker

Combine the two versions of the fonts.
03_Style_1.jpg
03_Style_1.jpg # (35.97 KiB) Viewed 2096 times Thumbnail
Save the new font highlights for use with other custom fonts using FaceMaker with grainmerge mode.

PixLab
Forum Member
29th Place
76 Post(s)

Post#6 by PixLab » 11 Dec 2021, 05:13


That's great Skinnyhouse :gimp_clap: :gimp_clap: , thank you very much :thumbsup:
Patrice

gimpturkey
Newly Registered
12th Place
1151 Post(s)

Post#7 by gimpturkey » 11 Dec 2021, 08:21


g.jpg
g.jpg # (18.63 KiB) Viewed 2054 times Thumbnail
GIMP Learn rocks...

skinnyhouse
Script Coder
5th Place
2515 Post(s)

Post#8 by skinnyhouse » 11 Dec 2021, 08:53


GT & PL :thumbsup: :thumbsup:

gimpturkey
Newly Registered
12th Place
1151 Post(s)

Post#9 by gimpturkey » 11 Dec 2021, 09:03


gimpturkey wrote:
11 Dec 2021, 08:21
g.jpg
:aw_shucks_purple: In which particular channel was the emboss gray font you created made? :aw_shucks_purple:
GIMP Learn rocks...

skinnyhouse
Script Coder
5th Place
2515 Post(s)

Post#10 by skinnyhouse » 11 Dec 2021, 09:08


Style Option 3: Add shading to characters with paths:

Simple blue Custom Font resource with added shade and kerning paths; download, extract and save to disk:
Like_Snow_Caps_Blue.7z #
(397.09 KiB) Downloaded 41 times

Open your custom font with shade paths in Gimp.

Open the Light and Shade plug-in:

Filters>>Custom Font Tools>>Custom Font Light and Shade...

Choose the foreground colour to use as the highlight colour.

Set the options and values shown below:
01_Style_3.jpg
01_Style_3.jpg # (37.77 KiB) Viewed 2051 times Thumbnail
If you are happy - save the new custom font file.

Experiment with the path width, mode and blur and see what happens. If you use Normal mode you may have to use trim pixels from the dialog to remove any undesirable halo effect.

Have fun!


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 18 guests