Changeset 364 for asp3_tinet_ecnl_arm/trunk/ntshell/lcd/misaki_font.h
- Timestamp:
- Feb 1, 2019, 9:57:09 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
asp3_tinet_ecnl_arm/trunk/ntshell/lcd/misaki_font.h
r352 r364 39 39 #define MISAKI_FONT_H 40 40 41 #include <stdint.h> 42 43 #define FONT_HALF_WIDTH 4 44 #define FONT_WIDTH 8 45 #define FONT_HEIGHT 8 46 41 47 struct utf8_code_bitmap { 42 unsigned charcode;43 unsigned char bitmap[8];48 const uint8_t code; 49 const uint8_t bitmap[FONT_WIDTH * FONT_HEIGHT / 8]; 44 50 }; 45 51 … … 48 54 #define UTF8_CODE_3B_2_NUM (343+1) /*半角追加2/2*/ 49 55 50 #define UTF8_CODE_BITMAP_NUM 6879 /*トータル*/51 56 #define UTF8_1B_CODE_BITMAP_NUM 128 52 57 #define UTF8_2B_CODE_BITMAP_NUM 122 /*"¬","\","¢""£"移動)*/ … … 54 59 55 60 // 1バイトコード 56 extern unsigned char UTF8_1B_CODE_BITMAP[UTF8_1B_CODE_BITMAP_NUM][8];61 extern const uint8_t UTF8_1B_CODE_BITMAP[UTF8_1B_CODE_BITMAP_NUM][FONT_HALF_WIDTH * FONT_HEIGHT / 8]; 57 62 58 63 // 2バイトコード 1バイト目 59 extern unsigned charUtf8CodeTable_2B_1st[UTF8_CODE_2B_1_NUM][2];64 extern const uint8_t Utf8CodeTable_2B_1st[UTF8_CODE_2B_1_NUM][2]; 60 65 // 2バイトコード 2バイト目 bitmapデータ 61 extern struct utf8_code_bitmap UTF8_2B_CODE_BITMAP[UTF8_2B_CODE_BITMAP_NUM];66 extern const struct utf8_code_bitmap UTF8_2B_CODE_BITMAP[UTF8_2B_CODE_BITMAP_NUM]; 62 67 63 68 // 3バイトコード 1バイト目 64 extern unsigned charUtf8CodeTable_3B_1st[UTF8_CODE_3B_1_NUM][2];69 extern const uint8_t Utf8CodeTable_3B_1st[UTF8_CODE_3B_1_NUM][2]; 65 70 // 3バイトコード 2バイト目 66 extern unsigned charUtf8CodeTable_3B_2nd[UTF8_CODE_3B_2_NUM][2];71 extern const uint8_t Utf8CodeTable_3B_2nd[UTF8_CODE_3B_2_NUM][2]; 67 72 68 73 // 3バイトコード 3バイト目 bitmapデータ 69 extern struct utf8_code_bitmap UTF8_3B_CODE_BITMAP[UTF8_3B_CODE_BITMAP_NUM];74 extern const struct utf8_code_bitmap UTF8_3B_CODE_BITMAP[UTF8_3B_CODE_BITMAP_NUM]; 70 75 71 76 #endif /* MISAKI_FONT_H */
Note:
See TracChangeset
for help on using the changeset viewer.