Understanding the FontCreator output

GLCD Font Creator software is the ultimate solution to create personalized fonts, symbols and icons for Graphic LCDs. It generates code compatible with All mikroElektronika compilers
Post Reply
Author
Message
lyubomyr
Posts: 2
Joined: 01 Feb 2017 20:19

Understanding the FontCreator output

#1 Post by lyubomyr » 01 Feb 2017 20:33

Hello.

First of all, thank You for the great font generating tool!!!

I want to understand the output format properly. I generated some font (letters A to F). I have put some comments below. Please, correct me where I am wrong


const unsigned short Tahoma13x14[] = {
0x00, // what is this??
0x00, // what is this??
0x41,0x00, // number if the first char in ASCII table. Here 0x41 = 65 = Letter A
0x46,0x00, // number if the last char in ASCII table. Here 0x46 = 70 = Letter F
// above values are calculated as NumbOfLetter = 0x00*0xFF + 0x41 => to decimal (if needed)
0x0E, //number of rows 0x0E = 14
0x00, //what is this??
0x0C,0x20,0x00,0x00, // the first number (0x0C) is number of collumns occupied by letter A
// next numbers are coordinates of the first hex data which corresponds to letter A. They are calculated 0x00*0xFF*0xFF+ 0x00*0xFF+ 0x20. And this mean that ellement 32 of the array Tahoma13x14[] is the ferst hex number that stands for lettar A
0x0B,0x3C,0x00,0x00,
0x0B,0x58,0x00,0x00,
0x0D,0x74,0x00,0x00,
0x0B,0x90,0x00,0x00,
0x0B,0xAC,0x00,0x00,

//below data corresponds ONLY to letters and can be used without modification 0xE0,0x00,0xE0,0x00,0xE0,0x00,0xB0,0x01,0xB0,0x01,0xB0,0x01,0x18,0x03,0x18,0x03,0xF8,0x03,0xFC,0x07,0x0C,0x06,0x0C,0x06,0x0E,0x0E,0x06,0x0C, // Code for char num 65
0xFC,0x01,0xFC,0x03,0x0C,0x03,0x0C,0x03,0x0C,0x03,0x8C,0x01,0xFC,0x00,0xFC,0x03,0x0C,0x07,0x0C,0x06,0x0C,0x06,0x0C,0x07,0xFC,0x03,0xFC,0x01, // Code for char num 66
0xF0,0x03,0xF8,0x07,0x1C,0x04,0x0C,0x00,0x06,0x00,0x06,0x00,0x06,0x00,0x06,0x00,0x06,0x00,0x06,0x00,0x0C,0x00,0x1C,0x04,0xF8,0x07,0xF0,0x03, // Code for char num 67
0xFC,0x01,0xFC,0x07,0x0C,0x0F,0x0C,0x0C,0x0C,0x18,0x0C,0x18,0x0C,0x18,0x0C,0x18,0x0C,0x18,0x0C,0x18,0x0C,0x0C,0x0C,0x0F,0xFC,0x07,0xFC,0x01, // Code for char num 68
0xFC,0x07,0xFC,0x07,0x0C,0x00,0x0C,0x00,0x0C,0x00,0xFC,0x07,0xFC,0x07,0x0C,0x00,0x0C,0x00,0x0C,0x00,0x0C,0x00,0x0C,0x00,0xFC,0x07,0xFC,0x07, // Code for char num 69
0xFC,0x07,0xFC,0x07,0x0C,0x00,0x0C,0x00,0x0C,0x00,0x0C,0x00,0xFC,0x07,0xFC,0x07,0x0C,0x00,0x0C,0x00,0x0C,0x00,0x0C,0x00,0x0C,0x00,0x0C,0x00 // Code for char num 70
};


Please, help me understand the lines (values) of the array that I can't figure out (blue). Are green comments correct?

User avatar
danilo.milovic
mikroElektronika team
Posts: 501
Joined: 05 Dec 2016 14:59

Re: Understanding the FontCreator output

#2 Post by danilo.milovic » 02 Feb 2017 17:52

Hi,

The Glcd Font Creator creates the fonts according to the Microchip Graphics Library document :

http://ww1.microchip.com/downloads/en/A ... 01182c.pdf

For more information please refer to this appNote.

Regards,

Danilo

lyubomyr
Posts: 2
Joined: 01 Feb 2017 20:19

Re: Understanding the FontCreator output

#3 Post by lyubomyr » 02 Feb 2017 19:18

Thank You very much. This was really helpful!!!

Post Reply

Return to “GLCD Font Creator Software”