Different lattice pattern codes of "I"

Source: Internet
Author: User
Tags 0xc0

"I" character lattice code

Author: Zhang guiquan

The following is the bitmap encoding of the word "I. Different encoding mode sizes show different characters.

 
Char wo12s [] = {
/* The following is the 12-dot matrix of 'my', 24 bytes */
0x0a, 0x80, 0xf2, 0x40, 0x12, 0x00, 0xff, 0xe0,
0x40, 0x3a, 0x80, 0xd1, 0x00,
0x13, 0x20, 0x1c, 0xa0, 0x70, 0x60, 0 x, 0x00,
};

Char wo16s [] = {
/* The following is the 'my' 16-dot-matrix ry font, 32 bytes */
0 x, 0 x, 0x50, 0 x, 0 x, 0 x, 0x48,
0x08,0x40, 0xff, 0xfe, 0x08,0x40, 0x08,0x48,
0x0e, 0x28, 0x38,0x30, 0xc8, 0x20, 0x08,0x50,
0 x, 0 x, 0x08, 0x0a, 0 x, 0 x, 0x10, 0x02,
};

Char wo24s [] = {
/* The following is the 'my' 24-dot matrix, 72 bytes */
0 x, 0 x, 0 x, 0 x, 0 x, 0 x, 0x24,
0 x, 0x00, 0xe6, 0x40, 0x0f, 0x60, 0x11,
0x04,0x30,0x01,0x04,0x30,0x01,0x04,0x00,
0x01,0x06, 0x0c, 0x3f, 0xff, 0xf0, 0x01,0x06,
0x20, 0x01,0x06,0x30,0x01,0x06,0x30,0x01,
0x7e, 0x60, 0x03,0x82, 0xc0, 0x3d, 0x02,0x80,
0x31,0x03,0x80, 0x01,0x03,0x00,0x01,0x07,
0x84,0x01,0x18, 0xc4, 0x01,0x20, 0x64, 0x0f,
0x40, 0x3c, 0x00, 0x0e, 0 x, 0 x, 0x00,
};

Char wo32s [] = {
/* The following is the 32-dot matrix of 'my', 128 bytes */
0 x, 0 x, 0 x, 0 x, 0 x, 0 x, 0x00,
0 x, 0 x, 0 x, 0x00, 0x1e, 0 x, 0x00,
0x00, 0xfe, 0x61,0x80, 0x1f, 0x60, 0x61, 0xc0,
0 x, 0x60, 0x60, 0xc0, 0 x, 0x60, 0x60, 0xc0,
0 x, 0x60, 0x60, 0x40, 0 x, 0x60, 0x60, 0x10,
0x00,0x60,0x60,0x38, 0x1f, 0xff, 0xbf, 0xc0,
0 x, 0x60, 0x20, 0 x, 0 x, 0x60, 0x20, 0x80,
0 x, 0x60, 0x30, 0xe0, 0 x, 0x60, 0x30, 0xc0,
0 x, 0x31, 0xc0, 0x00, 0x7c, 0x80,
0x01, 0xe0, 0x33,0x00, 0x0f, 0xe0, 0x36,0x00,
0x3c, 0x60, 0x1c, 0x00,0x10, 0x60, 0x1c, 0x00,
0 x, 0x60, 0x3c, 0 x, 0x60, 0x7c, 0x04,
0 x, 0x60, 0xc6, 0 x, 0 x, 0 X,
0 x, 0 x, 0x01, 0xcc, 0x07, 0xf8, 0x00, 0xfc,
0x01, 0xc0, 0x00, 0x7c, 0x0, 0x80, 0x00, 0x0e,
0 x, 0 x, 0 x, 0 x, 0 x, 0 x, 0x00,
};

Char wo48s [] = {
/* The following is the 48-dot-matrix of 'me', 288 bytes */
0 x, 0 x, 0 x, 0 x, 0 x, 0 x, 0x00,
0 x, 0 x, 0 x, 0 x, 0 x, 0 x, 0x00,
0 x, 0 x, 0 x, 0 x, 0 x, 0x30, 0 x, 0x00,
0 x, 0 x, 0x18, 0x3c, 0 x, 0 x, 0 x, 0x00,
0x7c, 0x3c, 0x40, 0x00,0x00,0x03, 0xfe, 0x38,
0x70, 0x00,0x00, 0x1f, 0xf0, 0x38, 0x3c, 0x00,
0x03, 0xff, 0x00,0x38, 0x1e, 0x00, 0x0c, 0x03,
0 x, 0x38, 0x0e, 0 x, 0 x, 0 x, 0x38,
0x0f, 0x00,0x00,0x03,0x00,0x38, 0x0f, 0x00,
0 x, 0 x, 0 x, 0 x, 0 x, 0 x, 0x03,
0 x, 0 x, 0 x, 0 x, 0 x, 0 x, 0x38,
0 x, 0 x, 0 x, 0 x, 0 x, 0 x, 0x00, 0xe0,
0 x, 0 x, 0 x, 0 x, 0x01, 0xf0, 0x0f, 0xff,
0xff, 0xff, 0xff, 0xf8, 0 x, 0 x, 0 x, 0x38,
0 x, 0 x, 0 x, 0 x, 0 x, 0 x, 0x00,
0 x, 0 x, 0 x, 0 x, 0 x, 0 x, 0x03,
0 x, 0x38, 0x0e, 0 x, 0 x, 0 x, 0x18,
0x0f, 0x00,0x00,0x03,0x00,0x18, 0x0f, 0x00,
0 x, 0 x, 0x01, 0x9c, 0x1e, 0 x, 0 x, 0x03,
0x0e, 0x1c, 0x3c, 0x00,0x00,0x03,0x78, 0x1c,
0x38,0x00,0x00,0x03, 0xc0, 0x1c, 0x78,0x00,
0x00, 0x3f, 0x00, 0x1c, 0xf0, 0x00,0x03, 0xff,
0x00, 0x1c, 0xe0, 0x00, 0x3f, 0xe3, 0x00, 0x0f,
0xc0, 0x00, 0x1f, 0x83,0x00, 0x0f, 0x80, 0x00,
0x0e, 0x00, 0x0f, 0x80, 0 x, 0 x, 0x03,
0x00, 0x0f, 0 x, 0 x, 0 x, 0 x, 0x00, 0x1f,
0x80, 0 x, 0 x, 0 x, 0x00, 0x3f, 0x80, 0x08,
0 x, 0 x, 0 x, 0x71, 0xc0, 0x10, 0 x, 0x03,
0x01, 0xe1, 0xe0, 0x10, 0 x, 0 x, 0 X,
0xf0, 0x10, 0 x, 0x03, 0x0e, 0x00, 0x7c, 0x18,
0 x, 0 x, 0 x, 0x00, 0x3e, 0 x, 0x01, 0xff,
0x60, 0x00, 0x1f, 0xf8, 0x00, 0x7f, 0x00,0x00,
0x07, 0xf8, 0x00, 0x1e, 0x00,0x00,0x03, 0xf8,
0x00, 0x0c, 0x00,0x00,0x00, 0x7c, 0x00,0x08,
0 x, 0 x, 0 x, 0 x, 0 x, 0 x, 0x00,
0 x, 0 x, 0 x, 0 x, 0 x, 0 x, 0x00,
};

Char wo64s [] = {
/* The following is the 64-dot-matrix of 'my', 512 bytes */
0 x, 0 x, 0 x, 0 x, 0 x, 0 x, 0x00,
0 x, 0 x, 0 x, 0 x, 0 x, 0 x, 0x00,
0 x, 0 x, 0 x, 0 x, 0 x, 0 x, 0x00,
0 x, 0 x, 0 x, 0 x, 0 x, 0 x, 0x00,
0 x, 0 x, 0 x, 0 x, 0x30, 0 x, 0 x, 0x00,
0 x, 0 x, 0 x, 0x10, 0x3c, 0 x, 0 x, 0x00,
0x00,0x00,0x00,0x38, 0x3f, 0x00,0x00,0x00,
0 x, 0 x, 0x01, 0xfc, 0x3f, 0 x, 0 x, 0x00,
0x00,0x00,0x07, 0xfc, 0x3c, 0x0e, 0x00,0x00,
0 x, 0x00, 0x7f, 0xfe, 0x3e, 0x07,0x80, 0x00,
0x00,0x07, 0xff, 0xc0, 0x1e, 0x03, 0xc0, 0x00,
0x00, 0x7f, 0xfc, 0x00, 0x1e, 0x03, 0xe0, 0x00,
0x03, 0xf0, 0x3c, 0x00, 0x1e, 0x01, 0xf0, 0x00,
0x00,0x00, 0x3c, 0x00, 0x1e, 0x00, 0xf8, 0x00,
0x00,0x00, 0x3c, 0x00, 0x1e, 0x00, 0xf8, 0x00,
0x00,0x00, 0x3c, 0x00, 0x1e, 0x00, 0xf8, 0x00,
0 x, 0x00, 0x3c, 0x00, 0x1e, 0 x, 0 x, 0x00,
0x00,0x00, 0x3c, 0x00, 0x1e, 0x00,0x30,0x00,
0x00,0x00, 0x3c, 0x00, 0x1e, 0x00,0x00,0x00,
0x00,0x00, 0x3c, 0x00, 0x1e, 0x00,0x00,0x00,
0x00,0x00, 0x3c, 0x00, 0x1e, 0x00,0x03,0x00,
0 x, 0x00, 0x3c, 0x00, 0x1e, 0 x, 0 x, 0x80,
0x00,0x00, 0x3c, 0x00, 0x1e, 0x00, 0x0f, 0xc0,
0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe0,
0x00, 0x3c, 0x00, 0x1e, 0 x, 0 x, 0x00,
0x00,0x00, 0x3c, 0x00, 0x1e, 0x00,0x00,0x00,
0x00,0x00, 0x3c, 0x00, 0x1e, 0x00,0x00,0x00,
0x00,0x00, 0x3c, 0x00, 0x1e, 0x00,0x40,0x00,
0 x, 0x00, 0x3c, 0x00, 0x1e, 0 x, 0x60, 0x00,
0x00,0x00, 0x3c, 0x00, 0x1e, 0x00, 0xf8, 0x00,
0x00,0x00, 0x3c, 0x00, 0x1e, 0x00, 0xfc, 0x00,
0x00,0x00, 0x3c, 0x00, 0x1e, 0x01, 0xfc, 0x00,
0x00,0x00, 0x3c, 0x00, 0x8e, 0x01, 0xf0, 0x00,
0x00,0x00, 0x3c, 0x07, 0x0e, 0x03, 0xe0, 0x00,
0x00,0x00, 0x3c, 0x3c, 0x0f, 0x03, 0xe0, 0x00,
0x00,0x00, 0x3d, 0xf0, 0x0f, 0x07, 0xc0, 0x00,
0 x, 0x00, 0x3f, 0xc0, 0x0f, 0x07,0x80, 0x00,
0x00,0x00, 0xfe, 0x00, 0x0f, 0x0f, 0x00,0x00,
0x00,0x07, 0xfc, 0x00, 0x0f, 0x1f, 0x00,0x00,
0x00, 0x7f, 0xfc, 0x00,0x07, 0x3e, 0x00,0x00,
0x07, 0xff, 0x3c, 0x00,0x07, 0xbc, 0x00,0x00,
0x0f, 0xfc, 0x3c, 0x00,0x07, 0xf8, 0x00,0x00,
0x0f, 0xf0, 0x3c, 0x00,0x07, 0xf8, 0x00,0x00,
0x07, 0xc0, 0x3c, 0x00,0x03, 0xf0, 0x00,0x00,
0 x, 0x00, 0x3c, 0 x, 0x03, 0xe0, 0 x, 0x00,
0 x, 0x00, 0x3c, 0 x, 0x07, 0xe0, 0 x, 0x20,
0x00,0x00, 0x3c, 0x00, 0x0f, 0xf0, 0x00,0x20,
0x00,0x00, 0x3c, 0x00, 0x1f, 0xf0, 0x00,0x20,
0x00,0x00, 0x3c, 0x00, 0x3c, 0xf8, 0x00,0x20,
0x00,0x00, 0x3c, 0x00, 0xf8, 0x7c, 0x00,0x20,
0x00,0x00, 0x3c, 0x01, 0xf0, 0x3e, 0x00,0x20,
0x00,0x00, 0x3c, 0x07, 0xc0, 0x1f, 0x00,0x60,
0x00,0x00, 0x3c, 0x0f, 0x00, 0x0f, 0xc0, 0x60,
0x00,0x00, 0x3c, 0x3c, 0x00, 0x0f, 0xe0, 0x60,
0 x, 0x00, 0x3c, 0x70, 0 x, 0x03, 0xf8, 0x70,
0x00, 0x7e, 0xfd, 0xc0, 0x00,0x01, 0xfe, 0x70,
0x00, 0x1f, 0xf8, 0x00,0x00,0x00, 0xff, 0xf0,
0 x, 0x07, 0xf8, 0 x, 0 x, 0x00, 0x3f, 0xf0,
0x00,0x01, 0xf0, 0x00,0x00,0x00, 0x1f, 0xf0,
0 x, 0x00, 0xe0, 0 x, 0 x, 0 x, 0x03, 0xf8,
0 x, 0x00, 0xc0, 0 x, 0 x, 0 x, 0x00, 0x3c,
0 x, 0 x, 0 x, 0 x, 0 x, 0 x, 0x00,
0 x, 0 x, 0 x, 0 x, 0 x, 0 x, 0x00,
0 x, 0 x, 0 x, 0 x, 0 x, 0 x, 0x00,
};

We all know that the Chinese character encoding is different from the encoding of other texts such as English. A byte can represent a letter, but a Chinese character requires two bytes, namely 16 bits. Through the above Code, you will find that their encoding is very different. When processing the dot-matrix Chinese character display, it generally only displays the bit where the value is 1.

Below are 12 lattice fonts in common fonts of "I:

Char wo12s [] = {
/* The following is the 12-dot matrix of 'my', 24 bytes */
0x0a, 0x80, 0xf2, 0x40, 0x12, 0x00, 0xff, 0xe0,
0x40, 0x3a, 0x80, 0xd1, 0x00,
0x13, 0x20, 0x1c, 0xa0, 0x70, 0x60, 0 x, 0x00,
};

Char wo12k [] = {
/* The following is the 12-dot matrix _ gb2312 font of 'my', 24 bytes */
0 x, 0 x, 0 x, 0 x, 0x80, 0 x, 0x00,
0x1c, 0 x, 0x80, 0x1a, 0x80, 0 x, 0x00,
0xd5, 0x20, 0x30, 0xa0, 0x00,0x60, 0x00,0x00,
};

Char wo12l [] = {
/* The following figure shows the 12-dot-matrix model of 'my', 24 bytes */
0x0a, 0x80, 0xf2, 0x40, 0x12, 0x00, 0xff, 0xe0,
0x40, 0x3a, 0x80, 0xd1, 0x00,
0x13, 0x20, 0x1c, 0xa0, 0x70, 0x60, 0 x, 0x00,
};

Char wo12h [] = {
/* The following is the 12-dot matrix ing mode of 'me', 24 bytes */
0 x, 0x00, 0x0a, 0x80, 0 x, 0x40, 0x12, 0x00,
0x7f, 0xe0, 0x12, 0x40, 0x1e, 0x40, 0x71,0x80,
0x11, 0 x, 0x16, 0xa0, 0x3c, 0x60, 0 x, 0x00,
};

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.