I never got the font creator tool to work myself.. but this is how edgelib works.. make a font file with all the characters you need like " abcdefg" etc into one bitmap.. and make a 1 pixel white border on top of each character.. that is if you have 'a' youll need to make a 1 pixel width line on top of it underwhich the entire character stays.. as a reference image i have uploaded a bit of my font file:
it looks so bad because i have upsized it to show clearly what i mean..
make all the characters like this and have a 1 colour background color key, i use magenta (255,0,255 ).. now add these line according to your needs:
- Code: Select all
// Tell edgelib what characters we have in the file
// Build font with 255,0,255 colorkey
// Set padding between characters, for proper spacing
10 lines; 1 keywds; 4 nums; 24 ops; 2 strs; 3 coms Syntactic Coloring v0.4 - Dan East
remember the font file is case sensitive, so setting the character list "abc" and trying to display "Abc" will only show " bc"..
one more tip create a space by making a white 1 pixel line over a blank area..
hope this helps..