Custom Font Creation

Ales Zigon
08-15-2002, 09:25 AM
I don't know how do you call this (boredom or just empty head), but this is exactly what came to me this morning. I was sitting by the PC and looking into the screen with totaly empty head. Next thing I remember (well almost) is this piece of code on it.

It's nothing fancy. I was just playing around with no idea at all and this came out.

It's a little sample of slightly different label...

It uses its own set of characters (not perfect but still...) 'coz I couldn't figure out how to convert windows ones.

These characters are saved in a file Character map.txt.

Characters are assembled on 5x8 matrix (can be changed).
You can enter your text in the textbox and hit ShowText or load some text from a file (hit Load text from file). This file is called Testdocument.txt

One problem with this is, if the text is long, it takes quite a wile to calculate the characters (still working on it...).

There's a piece of code that's not mine (conversion routine from base 10 to base 2). I think its origines are here...

Anyway, play with it.

Any comments are welcome! (please don't shoot the messenger!)

Have fun!:D

Ales Zigon
08-15-2002, 09:42 AM
And here's the code, if you want to make your own characters.

I forgot to mention that you can only use characters between 32 and 126.

When you use this code, follow this:

1. draw a character by clicking the buttons (click twice to unckeck)
2. enter the actual character in the text box (this is for easier reading and changing them later)
3. hit calculate button
4. hit save to file button.
5. hit Clear

Have fun!

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum