this topic/script is spawned from this topic ->
Need Help with PhotoFont PluginClick -->
Detailed instructions on how to use these already created fonts on gimplearn forumhere's he idea, you create png files that are named like A.png, B.png, C.png...
a.png, b.png, c.png... and cover all the alphabet and numbers and symbols (i might have to add custom symbols since some symbols can not be used as filenames, this would be very easy to add but i'll add them as we discover them)
(Note: version 10 and onward you don't open the .xcf file but you select it as part of the script options when running script)Then open a gimp file and open all these created files as layers so the layers are named the same "A.png" "B.png" "C.png" .... and maybe save this file as an .xcf file, and consider it your custom font file kind'a idea.
While having this .xcf file active with many layers indicating your font ... run the below script
Attachment:
custom_font.scm [3.58 KiB]
Downloaded 648 times
(It'll be available under Script-Fu/Create New/Custom Font...)
Note: Version 10 and later, you don't have the .xcf opened but you select the .xcf as a script option when prompted.
version 2 of script (Justify, Letter and Line spacing added)
version 3 of script ("FILLED" Justify added)
version 4 of script (named layers properly if merge layers is not selected, if merge layers is selected it'll autocrop image)
version 5 of script (use lowercase letters if uppercase isn't defined,
use uppercase letters if lowercase isn't defined,
use 'space.png' if ' .png' isn't defined)
version 6 of script (does not report warning when finding newline character ('\n'))
version 7 of script(use paths/vectors of the same name to define where actual character is located and character's width...if no vectors aren't found, it assumes that center of layer is where character is located and width of layer is width of character)
more details on thisversion 8 of script(fixed a bug, use image width to calculate offsets when vectors/paths are defined for characters because paths are relative to image coordinates and not layer coordinates.)
version 9 of script(fixed a bug, use layer's width and layer's offsets and path's position relative to layer's offsets to calculate offset to move by).
version 10 of scriptprompts for .xcf font file name instead of having to have .xcf font file opened.
version 11 of scriptAdded border space around text, and cleaned up debug messages (by Graechan).
version 12 of scriptPut back a debug code to message user that a certain layer cannot be found when it's not defined.
version 13 of scriptSpecify font size (in pixels) (by Graechan).
version 14 of scriptSet final-height based on new-image's aspect ratio to keep aspect ratio of the create text
version 15 of scriptWith optional kerning vectors for example AT.png, AW.png, WA.png...which define how wide the character should take place before the 2nd letter starts.
version 16 of scriptIf character(s) not found, just message user but continue with script so that we always get a result even if it meant ignoring not found characters.
And enter a text string, make sure all your characters in your text are defined in the above .xcf, otherwise you'll get some error complaining that some layers aren't found when it looks for the specific characters.
Here's a sample folder of my files defined for characters/letters found in "Gimp Chat" (including a space named as "space.png")
Attachment:
test.zip [9.46 KiB]
Downloaded 541 times
Here's a sample .xcf file that opened the above .png files in the sample zip above as layers (script is to be ran while this file is opened and active)
Attachment:
GimpChatTest.xcf [24.22 KiB]
Downloaded 561 times
here's a sample of what it generated when i created characters for the string Gimp Chat
-------------------- FONT CONTRIBUTIONS --------------------animistic_alphabet.7z (composed into .xcf by lylejk source:
http://windnstorm.deviantart.com/art/Animistic-Alphabet-330661610)
purple polygon font.xcf (by Wallace)
googlemapfont.xcf (composed into .xcf by Tin source:
http://www.telegraph.co.uk/technology/picture-galleries/5757548/The-Google-Maps-alphabet-UK-an-A-to-Z-of-the-British-Isles.html)
googlemapfont.xcf (composed into .xcf by lylejk source:
http://nelde.deviantart.com/art/Google-Earth-Alphabet-120408103)
cherub-alphabet.xcf.gz (by rich2005)
stitch_font.xcf (by lylejk)
RGBSpheres.xcf (by Tin with the help of
script found here called custom_font_composition.scm)
pipedream.xcf ->
Free for personal use. Please link to here -> http://illustratorg.deviantart.com/art/Steampunk-FONT-V3-298587681rodsSteamPunk.xcf (composed into .xcf by Tin source: (by Rod I think)
http://gimpchat.com/viewtopic.php?f=22&t=11158&p=150105&hilit=steampunk+font#p150001)
Blue Metallic Font.xcf (by Wallace)
tiles.xcf (by Tin)
Chiseled Stone Block with Vines Lowercase, "W" changed(by Wallace)
cut_gimpchatbanners.xcf to be used with
custom_cut_font.scm (
more details on custom cut font)
Old Lashed Wood Font (By Wallace)Bone Chocolate Chip Cookie Font DownloadMahvins Christmas Lights Font DownloadM&M's zipped .xcf font file
------------------------- TOOL TO FACILITATE YOU IN DESIGNING YOUR OWN FONT -------------------------by MareroQ
this tool will generate all (well not all, the default is missing w,W and some other characters use the below string instead)
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-=`[];'\,./~!@#$%^&*()_+{}:"|<>?
the letters and other characters in their layers with proper layer names
Font-to-layers.zip