forum

Home / DeveloperSection / Forums / How can I create arrays for bitmap characters of a font..

How can I create arrays for bitmap characters of a font..

Madhu Mitha196601-Apr-2015
hai..

How can I create arrays for bitmap characters of a font..

Which should be like a grid, width in pixels by the height in pixels of the font size. With thoise pixels should make shape of a character in the grid.

for example:
// Font data is Times New Roman 10pt
// Character bitmaps for Times New Roman 10pt
const uint_8 timesNewRoman_10ptBitmaps[] = 
{
// @0 'a' (5 pixels wide)
0x00, // 
0x00, // 
0x00, // 
0x60, // ## 
0x90, // # # 
0x70, // ### 
0x90, // # # 
0x90, // # # 
0x78, // ####
// @9 'b' (6 pixels wide)
0x40, // # 
0xC0, // ## 
0x40, // # 
0x58, // # ## 
0x64, // # # #
0x44, // # #
0x44, // # #
0x44, // # #
0x38, // ### 

Is there any possible way to it.. Can anyone help me in doing this process.

Thank U 

Updated on 01-Apr-2015

Can you answer this question?


Answer

6 Answers

Liked By