It is currently 24 Feb 2018, 04:19

GIMP TutorialsCustom Font Composition Script (How to) (Showcase | Slideshow)

GIMP Tutorials
Post Reply
User avatar

View: Showcase | Slideshow
Topic Posts: 1/2
Posts: 2191
Joined: 26 Sep 2016, 00:16
Cash on hand: 8,236.90 GLP
Bank: 53,924.25 GLP
Gender: Guy
Location: Victoria, BC
Operating System: Windows
GIMP Version: 2.8.22
My Personal Blog
My FineArtAmerica
x 1218
x 264

Custom Font Composition Script (How to)

Post#1 by tim » 01 Nov 2017, 19:31

The Idea of Custom Font Composition is that you have a font created by Font to Layers Script.
You then define elements that you want to use randomly to compose that font.

1. Run Font to Layers Script(Filters/Text/Font to Layers...) to create your basic font with font-size of 200 or larger if you want.
2. On the image created by step 1. Add new layers named 'element1.png', 'element2.png' and so on. These are your elements that you want to use
to compose the font.
3. As an example I created drawing of X as 'element1.png' and O as 'element2.png'. You can have more just name them sequentially starting with 'element', a number, then the '.png'.
custom_font_composition_example_elements.png # (9.02 KiB) Viewed 279 times (Watermarked | Thumbnail)
4. Once you have your elements defined (and cropped nicely into a square shape since we'll use these squares to compose our font, here my elements are 16x16)
5. Now run Custom Font Composition script (Script-Fu/Create New/Custom Font Composition...) You can use the below version since it defaults to have same characters that was used in step 1. Uncheck Merge Layers, enter number of elements (I have 2, element1.png and element2.png so I entered 2, grid size is 16 for me because my elements are 16x16). Click OK to run script. #
zipped .py scm file (unzip, put in your GIMP's /scripts/ folder)
(2.86 KiB) Downloaded 14 times
6. The script will generate a new image, that has characters/font composed from your elements to fit the shape of basic font created in step 1.
If you don't have separate layers because you forgot to uncheck "Merge Layers" in step 5, just Ctrl+Z once to undo the Merge Layers step to get
separate/individual layers. You'll notice that it defines all layers names like a custom font .xcf.

7. All that's missing is a 'space.png' or ' .png' layer. So Add a blank layer (I usually just duplicate an existing layer, rename it to 'space.png' and delete its content so that it's blank to be used as space) named 'space.png' or ' .png' into the image generated in step 5. And you have a custom font .xcf ready for use.

8. I saved the image generated in step 5 with added 'space.png' in step 7 as a custom font .xcf ready for use with Custom Font Script or Custom Font on Path Script.

Here's an example of use of Custom Font on Path of the custom font .xcf created in step 8.
custom_font_composition_example_1.png # (58.03 KiB) Viewed 279 times (Watermarked | Thumbnail)
Zoomed in where you can see it's composed of X's and O's (which were elements used).
custom_font_composition_example_2.png # (15.27 KiB) Viewed 279 times (Watermarked | Thumbnail)
1 x

aka Tin

Registered members enjoy ads-free content
User avatar
Tutorial Creator
View: Showcase | Slideshow
Topic Posts: 1/2
Posts: 1356
Joined: 03 Oct 2016, 13:01
Cash on hand: 10,360.85 GLP
Bank: 0.00 GLP
Gender: Guy
Location: Sheffield UK
Operating System: Windows
GIMP Version: 2.8.20
x 1492
x 212
Great Britain

Post#2 by RJKD » 01 Nov 2017, 20:26

Brilliant, thankyou so much Tim, really appreciate your help and time.
1 x

Post Reply

Last 20 Members Who Visited This Topic

steeno (1), User avatar Pat625 (6), User avatar tim (7), User avatar gnerd (4), User avatar RJKD (4), User avatar LucivaldoSP (1)

  • Similar Topics
    Last post
• Featuring Members' Works (Image Attachments Only) •
3: Pat625
4: leopardo-40
5: Issabella
6: Ella
7: oldmangrumpy

Who is online

Users browsing this forum: No registered users and 6 guests