Ryan Tseng
/
DisplayTest
Diff: KS0108/ArialB30.h
- Revision:
- 0:87b78725a6dd
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/KS0108/ArialB30.h Mon Mar 05 06:00:16 2012 +0000 @@ -0,0 +1,70 @@ + + +/* + * + * ArialB40 + * + * created with FontCreator + * written by F. Maximilian Thiele + * + * http://www.apetech.de/fontCreator + * me@apetech.de + * + * File Name : ArialB40.h + * Date : 22.02.2012 + * Font size in bytes : 6338 + * Font width : 20 + * Font height : 29 + * 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 ARIALB30_H +#define ARIALB30_H + +#define ARIALB30_WIDTH 20 +#define ARIALB30_HEIGHT 29 + +static unsigned int ArialB30[] = { + 0x18, 0xC2, // size + 0x14, // width + 0x1D, // height + 0x30, // first char + 0x0A, // char count + + // char widths + 0x16, 0x10, 0x16, 0x16, 0x1A, 0x16, 0x16, 0x16, 0x16, 0x16, + + + // font data + 0x00, 0xE0, 0xF0, 0xFC, 0xFC, 0xFE, 0xFE, 0xFF, 0xFF, 0x3F, 0x1F, 0x1F, 0x3F, 0xFF, 0xFF, 0xFE, 0xFE, 0xFC, 0xF8, 0xF0, 0xE0, 0x00, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0x0F, 0x7F, 0xFF, 0xFF, 0xFF, 0xF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