1 // This comes with no warranty, implied or otherwise
\r
3 // This data structure was designed to support Proportional fonts
\r
4 // on Arduinos. It can however handle any ttf font that has been converted
\r
5 // using the conversion program. These could be fixed width or proportional
\r
6 // fonts. Individual characters do not have to be multiples of 8 bits wide.
\r
7 // Any width is fine and does not need to be fixed.
\r
9 // The data bits are packed to minimize data requirements, but the tradeoff
\r
10 // is that a header is required per character.
\r
14 // Memory usage : 5 bytes
\r
15 // # characters : 256
\r
17 // Header Format (to make Arduino UTFT Compatible):
\r
18 // ------------------------------------------------
\r
19 // Character Width (Used as a marker to indicate use this format. i.e.: = 0x00)
\r
21 // First Character (Reserved. 0x00)
\r
22 // Number Of Characters (Reserved. 0x00)
\r
24 #include <avr/pgmspace.h>
\r
26 uint8_t dejavuY18[] PROGMEM =
\r
28 0x00, 0x00, 0x00, 0x00,
\r
30 // Individual Character Format:
\r
31 // ----------------------------
\r
33 // Adjusted Y Offset
\r
37 // xDelta (the distance to move the cursor. Effective width of the character.)
\r
40 // NOTE: You can remove any of these characters if they are not needed in
\r
41 // your application. The first character number in each Glyph indicates
\r
42 // the ASCII character code. Therefore, these do not have to be sequential.
\r
43 // Just remove all the content for a particular character to save space.
\r