GEuser's CGUI LIB: dotMatrix Font Creator
Posted: Wed Apr 02, 2014 2:21 am
THIS TOPIC IS RELATED TO THE FOLLOWING THREAD LINK: GEuser's CGUI Lib: dotMatrix() - dotMatrix Canvas Fonts viewtopic.php?f=8&t=13263
SCREENSHOT
DOWNLOADS Game Editor version 1.4.0
1. Linux
2. Mac
3. Windows
BASIC INFORMATION
Allows you to create your own dotMatrix fonts, can save the fonts to text file and auto-generates the global code to use in your own projects. Whether you want to create alien scripts, maths / scientific symbols for educational apps, space invader icons for simple games (with each character representing an animation frame) or border dingbats for general use, you can do them with this font creator. Your imagination is the only limit.
CODE USE
1. Create a CANVAS ACTOR
2. Access game editor's script editor.
3. Copy/Paste following Global Code from below into script editor. Add it as: getCharCode.
3. Import the global code generated by this font creator (You will find it in the same folder as the font creator - where ever you unzipped it). Add this imported code as whatever its says in the global code (1st line, after the void bit).
4. you can now repeat step 3. for each font you create.
CALL your custom function from your CANVAS ACTOR EVENTS (usually Create Actor or Draw Actor) like this:
NOTES
HELP GUIDE
As well as clicking on the HELP GUIDE tab, you can also hover over the buttons to see what they do (tool-tip message appears on top side).
FILE EXAMPLES
Don't include the extensions for the FONT FILE and CODE FILE filenames.
FONT FILE: myFontData will be saved as myFontData.txt automatically.
and likewise:-
CODE FILE: myFontCode will be saved as myFontCode.c (with the function named in code as void myFontCode(...)...etc., ready for you to import and add into Game Editor global code as: myFontCode. So, just substitute for whatever you named them as shown.
EXAMPLE FONTS
To load in the example fonts in screenshots (alienscript1, supersub, borders) simply type in as named and click LOAD FONT button. The .txt files have been included in the .zip files.
FEEDBACK
If you like, feel free to provide screenshots for any cool looking fonts you design.
SCREENSHOT
DOWNLOADS Game Editor version 1.4.0
1. Linux
2. Mac
3. Windows
BASIC INFORMATION
Allows you to create your own dotMatrix fonts, can save the fonts to text file and auto-generates the global code to use in your own projects. Whether you want to create alien scripts, maths / scientific symbols for educational apps, space invader icons for simple games (with each character representing an animation frame) or border dingbats for general use, you can do them with this font creator. Your imagination is the only limit.
CODE USE
1. Create a CANVAS ACTOR
2. Access game editor's script editor.
3. Copy/Paste following Global Code from below into script editor. Add it as: getCharCode.
- Code: Select all
int getCharCode(char C)
{
// usage: int i = getCharCode('A');
int result=0;
sscanf("%d", &C);
result=C;
return result;
}
3. Import the global code generated by this font creator (You will find it in the same folder as the font creator - where ever you unzipped it). Add this imported code as whatever its says in the global code (1st line, after the void bit).
4. you can now repeat step 3. for each font you create.
CALL your custom function from your CANVAS ACTOR EVENTS (usually Create Actor or Draw Actor) like this:
- Code: Select all
yourcustomfunction(0, "My text goes here.", 1, "FFFFFF0000000000", 10, 10, 1, 1, 0, 0);
NOTES
HELP GUIDE
As well as clicking on the HELP GUIDE tab, you can also hover over the buttons to see what they do (tool-tip message appears on top side).
FILE EXAMPLES
Don't include the extensions for the FONT FILE and CODE FILE filenames.
FONT FILE: myFontData will be saved as myFontData.txt automatically.
and likewise:-
CODE FILE: myFontCode will be saved as myFontCode.c (with the function named in code as void myFontCode(...)...etc., ready for you to import and add into Game Editor global code as: myFontCode. So, just substitute for whatever you named them as shown.
EXAMPLE FONTS
To load in the example fonts in screenshots (alienscript1, supersub, borders) simply type in as named and click LOAD FONT button. The .txt files have been included in the .zip files.
FEEDBACK
If you like, feel free to provide screenshots for any cool looking fonts you design.