Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/30/08 07:24
Read: times


 
#155280 - 8x8 char font
Responding to: ???'s previous message
Dear Mahmood,

Here is a 8x8 font for you to use for char ascii 0x20 (space) to char ascii 0x7e ('~').

Hope it will help you. hexvalue & corresponding char is shown on RHS within comments

I am using it in one of my projects of graphical LCD. It is in 'c' code but one can easily convert it to assembly.

This is a one dimensional array, can be converted to 2d if required.

unsigned char font8_8[]=
{
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* '\x20' */
0x00,0x00,0x5f,0x00,0x00,0x00,0x00,0x00, /* '\x21' ! */
0x00,0x07,0x00,0x07,0x00,0x00,0x00,0x00, /* '\x22' " */
0x14,0x7f,0x14,0x7f,0x14,0x00,0x00,0x00, /* '\x23' # */
0x24,0x2a,0x7f,0x2a,0x12,0x00,0x00,0x00, /* '\x24' $ */
0x23,0x13,0x08,0x64,0x62,0x00,0x00,0x00, /* '\x25' % */
0x36,0x49,0x56,0x20,0x50,0x00,0x00,0x00, /* '\x26' & */
0x00,0x00,0x07,0x00,0x00,0x00,0x00,0x00, /* '\x27' ' */
0x1c,0x22,0x41,0x00,0x00,0x00,0x00,0x00, /* '\x28' ( */
0x00,0x00,0x41,0x22,0x1c,0x00,0x00,0x00, /* '\x29' ) */
0x22,0x14,0x7f,0x14,0x22,0x00,0x00,0x00, /* '\x2A' * */
0x08,0x08,0x3e,0x08,0x08,0x00,0x00,0x00, /* '\x2B' + */
0x00,0x40,0x30,0x00,0x00,0x00,0x00,0x00, /* '\x2C' , */
0x00,0x08,0x08,0x08,0x08,0x00,0x00,0x00, /* '\x2D' - */
0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00, /* '\x2E' . */
0x20,0x10,0x08,0x04,0x02,0x00,0x00,0x00, /* '\x2F' / */

0x3e,0x51,0x49,0x45,0x3e,0x00,0x00,0x00, /* '\x30' 0 */
0x00,0x42,0x7f,0x40,0x00,0x00,0x00,0x00, /* '\x31' 1 */
0x72,0x49,0x49,0x49,0x46,0x00,0x00,0x00, /* '\x32' 2 */
0x21,0x41,0x49,0x4d,0x33,0x00,0x00,0x00, /* '\x33' 3 */
0x18,0x14,0x12,0x7f,0x10,0x00,0x00,0x00, /* '\x34' 4 */
0x27,0x45,0x45,0x45,0x39,0x00,0x00,0x00, /* '\x35' 5 */
0x3c,0x4a,0x49,0x49,0x31,0x00,0x00,0x00, /* '\x36' 6 */
0x01,0x71,0x09,0x05,0x03,0x00,0x00,0x00, /* '\x37' 7 */
0x36,0x49,0x49,0x49,0x36,0x00,0x00,0x00, /* '\x38' 8 */
0x46,0x49,0x49,0x29,0x1e,0x00,0x00,0x00, /* '\x39' 9 */
0x00,0x00,0x24,0x00,0x00,0x00,0x00,0x00, /* '\x3A' : */
0x00,0x40,0x32,0x00,0x00,0x00,0x00,0x00, /* '\x3B' ; */
0x08,0x14,0x22,0x41,0x00,0x00,0x00,0x00, /* '\x3C' < */
0x14,0x14,0x14,0x14,0x14,0x00,0x00,0x00, /* '\x3D' = */
0x00,0x41,0x22,0x14,0x08,0x00,0x00,0x00, /* '\x3E' > */
0x02,0x01,0x51,0x09,0x06,0x00,0x00,0x00, /* '\x3F' ? */

0x3e,0x41,0x5d,0x59,0x4e,0x00,0x00,0x00, /* '\x40' @ */
0x7c,0x12,0x11,0x12,0x7c,0x00,0x00,0x00, /* '\x41' A */
0x41,0x7f,0x49,0x49,0x36,0x00,0x00,0x00, /* '\x42' B */
0x3e,0x41,0x41,0x41,0x22,0x00,0x00,0x00, /* '\x43' C */
0x41,0x7f,0x41,0x41,0x3e,0x00,0x00,0x00, /* '\x44' D */
0x7f,0x49,0x49,0x41,0x41,0x00,0x00,0x00, /* '\x45' E */
0x7f,0x09,0x09,0x01,0x01,0x00,0x00,0x00, /* '\x46' F */
0x3e,0x41,0x49,0x49,0x79,0x00,0x00,0x00, /* '\x47' G */
0x7f,0x08,0x08,0x08,0x7f,0x00,0x00,0x00, /* '\x48' H */
0x00,0x41,0x7f,0x41,0x00,0x00,0x00,0x00, /* '\x49' I */
0x20,0x40,0x40,0x41,0x3f,0x00,0x00,0x00, /* '\x4A' J */
0x7f,0x08,0x14,0x22,0x41,0x00,0x00,0x00, /* '\x4B' K */
0x7f,0x40,0x40,0x40,0x40,0x00,0x00,0x00, /* '\x4C' L */
0x7f,0x02,0x0c,0x02,0x7f,0x00,0x00,0x00, /* '\x4D' M */
0x7f,0x02,0x04,0x08,0x7f,0x00,0x00,0x00, /* '\x4E' N */
0x3e,0x41,0x41,0x41,0x3e,0x00,0x00,0x00, /* '\x4F' O */

0x7f,0x09,0x09,0x09,0x06,0x00,0x00,0x00, /* '\x50' P */
0x3e,0x41,0x51,0x21,0x5e,0x00,0x00,0x00, /* '\x51' Q */
0x7f,0x09,0x19,0x29,0x46,0x00,0x00,0x00, /* '\x52' R */
0x46,0x49,0x49,0x49,0x31,0x00,0x00,0x00, /* '\x53' S */
0x01,0x01,0x7f,0x01,0x01,0x00,0x00,0x00, /* '\x54' T */
0x3f,0x40,0x40,0x40,0x3f,0x00,0x00,0x00, /* '\x55' U */
0x1f,0x20,0x40,0x20,0x1f,0x00,0x00,0x00, /* '\x56' V */
0x7f,0x20,0x10,0x20,0x7f,0x00,0x00,0x00, /* '\x57' W */
0x63,0x14,0x08,0x14,0x63,0x00,0x00,0x00, /* '\x58' X */
0x07,0x08,0x70,0x08,0x07,0x00,0x00,0x00, /* '\x59' Y */
0x61,0x51,0x49,0x45,0x43,0x00,0x00,0x00, /* '\x5A' Z */
0x00,0x7f,0x41,0x41,0x00,0x00,0x00,0x00, /* '\x5B' [ */
0x02,0x04,0x08,0x10,0x20,0x00,0x00,0x00, /* '\x5C' \ */
0x00,0x00,0x41,0x41,0x7f,0x00,0x00,0x00, /* '\x5D' ] */
0x04,0x02,0x7f,0x02,0x04,0x00,0x00,0x00, /* '\x5E' ^ */
0x40,0x40,0x40,0x40,0x40,0x00,0x00,0x00, /* '\x5F' _ */

0x00,0x00,0x01,0x06,0x00,0x00,0x00,0x00, /* '\x60' ` */
0x20,0x54,0x54,0x54,0x7c,0x00,0x00,0x00, /* '\x61' a */
0x7f,0x48,0x44,0x44,0x38,0x00,0x00,0x00, /* '\x62' b */
0x00,0x38,0x44,0x44,0x44,0x00,0x00,0x00, /* '\x63' c */
0x38,0x44,0x44,0x48,0x7f,0x00,0x00,0x00, /* '\x64' d */
0x00,0x38,0x54,0x54,0x5c,0x00,0x00,0x00, /* '\x65' e */
0x08,0x7e,0x09,0x01,0x03,0x00,0x00,0x00, /* '\x66' f */
0x0c,0x52,0x52,0x52,0x7e,0x00,0x00,0x00, /* '\x67' g */
0x7f,0x08,0x04,0x04,0x78,0x00,0x00,0x00, /* '\x68' h */
0x00,0x00,0x3d,0x40,0x00,0x00,0x00,0x00, /* '\x69' i */
0x00,0x20,0x40,0x40,0x3d,0x00,0x00,0x00, /* '\x6A' j */
0x7f,0x20,0x10,0x28,0x44,0x00,0x00,0x00, /* '\x6B' k */
0x00,0x00,0x3f,0x40,0x00,0x00,0x00,0x00, /* '\x6C' l */
0x7c,0x04,0x18,0x04,0x7c,0x00,0x00,0x00, /* '\x6D' m */
0x7c,0x08,0x04,0x04,0x78,0x00,0x00,0x00, /* '\x6E' n */
0x00,0x38,0x44,0x44,0x38,0x00,0x00,0x00, /* '\x6F' o */

0x7e,0x12,0x12,0x12,0x0c,0x00,0x00,0x00, /* '\x70' p */
0x0c,0x12,0x12,0x12,0x7c,0x00,0x00,0x00, /* '\x71' q */
0x7c,0x08,0x04,0x04,0x08,0x00,0x00,0x00, /* '\x72' r */
0x00,0x48,0x54,0x54,0x24,0x00,0x00,0x00, /* '\x73' s */
0x00,0x04,0x3f,0x44,0x00,0x00,0x00,0x00, /* '\x74' t */
0x3c,0x40,0x40,0x20,0x3c,0x00,0x00,0x00, /* '\x75' u */
0x1c,0x20,0x40,0x20,0x1c,0x00,0x00,0x00, /* '\x76' v */
0x3c,0x60,0x30,0x60,0x3c,0x00,0x00,0x00, /* '\x77' w */
0x44,0x28,0x10,0x28,0x44,0x00,0x00,0x00, /* '\x78' x */
0x0c,0x10,0x50,0x50,0x7c,0x00,0x00,0x00, /* '\x79' y */
0x44,0x64,0x54,0x4c,0x44,0x00,0x00,0x00, /* '\x7A' z */
0x08,0x00,0x77,0x41,0x00,0x00,0x00,0x00, /* '\x7B' { */
0x00,0x00,0x7f,0x00,0x00,0x00,0x00,0x00, /* '\x7C' | */
0x00,0x41,0x41,0x36,0x08,0x00,0x00,0x00, /* '\x7D' } */
0x08,0x04,0x0c,0x10,0x18,0x00,0x00,0x00, /* '\x7E' ~ */
};

Regards,
Mahesh

List of 31 messages in thread
TopicAuthorDate
outdoor display            01/01/70 00:00      
   LED sign summary            01/01/70 00:00      
      excellente Senor one comment            01/01/70 00:00      
         LEDs arrangement on PCB            01/01/70 00:00      
            The big tradeoff            01/01/70 00:00      
               Reverse engineering            01/01/70 00:00      
                  once color get involved ...            01/01/70 00:00      
      Human perception of luminance            01/01/70 00:00      
         nice, correct, but irrelevant in this respect            01/01/70 00:00      
   Ambient Light Sensor            01/01/70 00:00      
      anything you can read that is ...            01/01/70 00:00      
         TSL250R            01/01/70 00:00      
            maybe not, maybe so            01/01/70 00:00      
               Late Question            01/01/70 00:00      
                  l/f l/v            01/01/70 00:00      
                  i thought those common            01/01/70 00:00      
   LED Panel Fonts            01/01/70 00:00      
      go to the PC            01/01/70 00:00      
      http://www.8052.com/users/bahrio/            01/01/70 00:00      
      Here is a 9Wx7H Font            01/01/70 00:00      
      8x8 char font            01/01/70 00:00      
         go for a proportional font            01/01/70 00:00      
   I Agree; Go Proportional            01/01/70 00:00      
      that's the one            01/01/70 00:00      
         Rotating....            01/01/70 00:00      
            so do I            01/01/70 00:00      
               Luxury?            01/01/70 00:00      
                  no, no squirt            01/01/70 00:00      
      thats exactly the one I was looking for            01/01/70 00:00      
   LED Panel FAQ            01/01/70 00:00      
      LED Panel FAQ does not match what I 'know'            01/01/70 00:00      

Back to Subject List