Awesome
GuiLite Toolkit - Build Font/Bitmap resource
GuiLiteToolkit is 200 lines code for building font lattice & bitmap of GuiLite.
How to build font lattice?
Step 1: Input the charaters you need.
Step 2: Choose font type you want.
Step 3: Generate CPP files.
Step 4: Add CPP files to your APP project.
How to input charaters in your APP?
It works with unicode(UTF-8), will help your APP support all languages and symbols all over the world.
For Linux Gcc - input unicode charaters directly
e.g: char* my_string = "abc你好"
For Windows Visual studio
- For ascii code: input directly.
- For 2 bytes code or above, input charaters in code(e.g: char* my_string = "abc你好" => char* my_string = "abc \xE4\xBD\xA0\xE5\xA5\xBD")
- How to get utf-8 code of chinese? Visit the websites below:
Sample Code
How to build bitmap?
Step 1: Import 24 bits bitmap.
Step 2: Generate CPP files.
Step 3: Add CPP files to your APP project.
Know issue
- Letter lattice is all black.
- Because of DC error, the letter could not be display correctly, so the lattice would be wrong. The workaround is running GuiLiteToolkit in Visual Studio debug mode.