Ryan Tseng
/
DisplayTest
Diff: KS0108/CourierNew_B30.h
- Revision:
- 0:87b78725a6dd
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/KS0108/CourierNew_B30.h Mon Mar 05 06:00:16 2012 +0000 @@ -0,0 +1,70 @@ + + +/* + * + * CourierNew_B30 + * + * created with FontCreator + * written by F. Maximilian Thiele + * + * http://www.apetech.de/fontCreator + * me@apetech.de + * + * File Name : CourierNew_B30.h + * Date : 02.03.2012 + * Font size in bytes : 2543 + * Font width : 14 + * Font height : 19 + * Font first char : 48 + * Font last char : 58 + * Font used chars : 10 + * + * The font data are defined as + * + * struct _FONT_ { + * uint16_t font_Size_in_Bytes_over_all_included_Size_it_self; + * uint8_t font_Width_in_Pixel_for_fixed_drawing; + * uint8_t font_Height_in_Pixel_for_all_characters; + * unit8_t font_First_Char; + * uint8_t font_Char_Count; + * + * uint8_t font_Char_Widths[font_Last_Char - font_First_Char +1]; + * // for each character the separate width in pixels, + * // characters < 128 have an implicit virtual right empty row + * + * uint8_t font_data[]; + * // bit field of all characters + */ + +#ifndef COURIERNEW_B30_H +#define COURIERNEW_B30_H + +#define COURIERNEW_B30_WIDTH 14 +#define COURIERNEW_B30_HEIGHT 19 + +static unsigned int CourierNew_B30[]= { + 0x09, 0xEF, // size + 0x0E, // width + 0x13, // height + 0x30, // first char + 0x0A, // char count + + // char widths + 0x0D, 0x0D, 0x0E, 0x0E, 0x0D, 0x0E, 0x0D, 0x0D, 0x0D, 0x0D, + + + // font data + 0xE0, 0xF8, 0xFC, 0x1E, 0x0F, 0x07, 0x07, 0x07, 0x0F, 0x1E, 0xFC, 0xF8, 0xE0, 0x3F, 0xFF, 0xFF, 0xC0, 0x80, 0x00, 0x00, 0x00, 0x80, 0xC0, 0xFF, 0xFF, 0x3F, 0x00, 0x00, 0x20, 0x60, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0x60, 0x20, 0x00, 0x00, // 48 + 0x1C, 0x1C, 0x1E, 0x0E, 0x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, 0x87, 0xFF, 0xFF, 0x7C, 0x20, 0x60, 0x60, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0x60, 0x60, 0x20, 0x00, // 53 + 0x80, 0xE0, 0xF8, 0x7C, 0x3C, 0x9E, 0x8E, 0x87, 0x87, 0x07, 0x07, 0x0F, 0x0E, 0x3F, 0xFF, 0xFF, 0xCE, 0x87, 0x03, 0x03, 0x03, 0x07, 0x8F, 0xFF, 0xFE, 0xF8, 0x00, 0x00, 0x20, 0x60, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0x60, 0x20, 0x00, // 54 + 0x1F, 0x1F, 0x1F, 0x07, 0x07, 0x07, 0x07, 0x07, 0x87, 0xF7, 0xFF, 0x7F, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0xFC, 0xFF, 0x1F, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0xE0, 0xE0, 0x00, 0x00, 0x00, 0x00, 0x00, // 55 + 0x78, 0xFC, 0xFE, 0x8E, 0x07, 0x07, 0x07, 0x07, 0x07, 0x8E, 0xFE, 0xFC, 0x78, 0xF0, 0xFD, 0xFF, 0x8F, 0x07, 0x07, 0x07, 0x07, 0x07, 0x8F, 0xFF, 0xFD, 0xF8, 0x00, 0x20, 0x60, 0x60, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0x60, 0x60, 0x20, 0x00, // 56 + 0xF0, 0xFC, 0xFE, 0x0E, 0x07, 0x07, 0x07, 0x07, 0x0E, 0x1E, 0xFC, 0xF8, 0xE0, 0x81, 0x87, 0x0F, 0x0F, 0x1E, 0x1C, 0x9C, 0x9C, 0xCE, 0xF7, 0xFF, 0x7F, 0x1F, 0x60, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0x60, 0x60, 0x20, 0x00, 0x00, 0x00 // 57 + +}; + +#endif