TomThumb.h 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481
  1. /**
  2. ** The original 3x5 font is licensed under the 3-clause BSD license:
  3. **
  4. ** Copyright 1999 Brian J. Swetland
  5. ** Copyright 1999 Vassilii Khachaturov
  6. ** Portions (of vt100.c/vt100.h) copyright Dan Marks
  7. **
  8. ** All rights reserved.
  9. **
  10. ** Redistribution and use in source and binary forms, with or without
  11. ** modification, are permitted provided that the following conditions
  12. ** are met:
  13. ** 1. Redistributions of source code must retain the above copyright
  14. ** notice, this list of conditions, and the following disclaimer.
  15. ** 2. Redistributions in binary form must reproduce the above copyright
  16. ** notice, this list of conditions, and the following disclaimer in the
  17. ** documentation and/or other materials provided with the distribution.
  18. ** 3. The name of the authors may not be used to endorse or promote products
  19. ** derived from this software without specific prior written permission.
  20. **
  21. ** THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  22. ** IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  23. ** OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  24. ** IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  25. ** INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  26. ** NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  27. ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  28. ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  29. ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  30. ** THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  31. **
  32. ** Modifications to Tom Thumb for improved readability are from Robey Pointer,
  33. ** see:
  34. ** http://robey.lag.net/2010/01/23/tiny-monospace-font.html
  35. **
  36. ** The original author does not have any objection to relicensing of Robey
  37. ** Pointer's modifications (in this file) in a more permissive license. See
  38. ** the discussion at the above blog, and also here:
  39. ** http://opengameart.org/forumtopic/how-to-submit-art-using-the-3-clause-bsd-license
  40. **
  41. ** Feb 21, 2016: Conversion from Linux BDF --> Adafruit GFX font,
  42. ** with the help of this Python script:
  43. ** https://gist.github.com/skelliam/322d421f028545f16f6d
  44. ** William Skellenger (williamj@skellenger.net)
  45. ** Twitter: @skelliam
  46. **
  47. */
  48. //TomThumb Version 201902101755
  49. #define TOMTHUMB_USE_EXTENDED 1
  50. const uint8_t TomThumbBitmaps[] PROGMEM = {
  51. 0x00, /*[0] 0x20 space */
  52. 0x80, 0x80, 0x80, 0x00, 0x80, /*[1] 0x21 exclam */
  53. 0xA0, 0xA0, /*[2] 0x22 quotedbl */
  54. 0xA0, 0xE0, 0xA0, 0xE0, 0xA0, /*[3] 0x23 numbersign */
  55. 0x60, 0xC0, 0x60, 0xC0, 0x40, /*[4] 0x24 dollar */
  56. 0xA0, 0x20, 0x40, 0x80, 0xA0, /*[5] 0x25 percent */
  57. 0xC0, 0xC0, 0xE0, 0xA0, 0x60, /*[6] 0x26 ampersand */
  58. 0x80, 0x80, /*[7] 0x27 quotesingle */
  59. 0x40, 0x80, 0x80, 0x80, 0x40, /*[8] 0x28 parenleft */
  60. 0x80, 0x40, 0x40, 0x40, 0x80, /*[9] 0x29 parenright */
  61. 0xA0, 0x40, 0xA0, /*[10] 0x2A asterisk */
  62. 0x40, 0xE0, 0x40, /*[11] 0x2B plus */
  63. 0x40, 0x80, /*[12] 0x2C comma */
  64. 0xE0, /*[13] 0x2D hyphen */
  65. 0x80, /*[14] 0x2E period */
  66. 0x20, 0x20, 0x40, 0x80, 0x80, /*[15] 0x2F slash */
  67. 0xE0, 0xA0, 0xA0, 0xA0, 0xE0, /*[16] 0x30 zero */
  68. 0x40, 0xC0, 0x40, 0x40, 0xE0, /*[17] 0x31 one */
  69. 0xE0, 0x20, 0xE0, 0x80, 0xE0, /*[18] 0x32 two */
  70. 0xE0, 0x20, 0xE0, 0x20, 0xE0, /*[19] 0x33 three */
  71. 0xA0, 0xA0, 0xE0, 0x20, 0x20, /*[20] 0x34 four */
  72. 0xE0, 0x80, 0xE0, 0x20, 0xE0, /*[21] 0x35 five */
  73. 0xE0, 0x80, 0xE0, 0xA0, 0xE0, /*[22] 0x36 six */
  74. 0xE0, 0x20, 0x20, 0x20, 0x20, /*[23] 0x37 seven */
  75. 0xE0, 0xA0, 0xE0, 0xA0, 0xE0, /*[24] 0x38 eight */
  76. 0xE0, 0xA0, 0xE0, 0x20, 0xE0, /*[25] 0x39 nine */
  77. 0x80, 0x00, 0x80, /*[26] 0x3A colon */
  78. 0x40, 0x00, 0x40, 0x80, /*[27] 0x3B semicolon */
  79. 0x20, 0x40, 0x80, 0x40, 0x20, /*[28] 0x3C less */
  80. 0xE0, 0x00, 0xE0, /*[29] 0x3D equal */
  81. 0x80, 0x40, 0x20, 0x40, 0x80, /*[30] 0x3E greater */
  82. 0xE0, 0x20, 0x40, 0x00, 0x40, /*[31] 0x3F question */
  83. 0x40, 0xA0, 0xE0, 0x80, 0x60, /*[32] 0x40 at */
  84. 0xC0, 0xA0, 0xE0, 0xA0, 0xA0, /*[33] 0x41 A */
  85. 0xC0, 0xA0, 0xC0, 0xA0, 0xC0, /*[34] 0x42 B */
  86. 0x40, 0xA0, 0x80, 0xA0, 0x40, /*[35] 0x43 C */
  87. 0xC0, 0xA0, 0xA0, 0xA0, 0xC0, /*[36] 0x44 D */
  88. 0xE0, 0x80, 0xE0, 0x80, 0xE0, /*[37] 0x45 E */
  89. 0xE0, 0x80, 0xE0, 0x80, 0x80, /*[38] 0x46 F */
  90. 0x60, 0x80, 0xA0, 0xA0, 0x60, /*[39] 0x47 G */
  91. 0xA0, 0xA0, 0xE0, 0xA0, 0xA0, /*[40] 0x48 H */
  92. 0x80, 0x80, 0x80, 0x80, 0x80, /*[41] 0x49 I */
  93. 0x20, 0x20, 0x20, 0xA0, 0x40, /*[42] 0x4A J */
  94. 0xA0, 0xA0, 0xC0, 0xA0, 0xA0, /*[43] 0x4B K */
  95. 0x80, 0x80, 0x80, 0x80, 0xE0, /*[44] 0x4C L */
  96. 0x88, 0xD8, 0xA8, 0x88, 0x88, /*[45] 0x4D M */
  97. 0x90, 0xD0, 0xB0, 0x90, 0x90, /*[46] 0x4E N */
  98. 0x40, 0xA0, 0xA0, 0xA0, 0x40, /*[47] 0x4F O */
  99. 0xE0, 0xA0, 0xC0, 0x80, 0x80, /*[48] 0x50 P */
  100. 0x40, 0xA0, 0xA0, 0xA0, 0x70, /*[49] 0x51 Q */
  101. 0xE0, 0xA0, 0xC0, 0xA0, 0xA0, /*[50] 0x52 R */
  102. 0xE0, 0x80, 0xE0, 0x20, 0xE0, /*[51] 0x53 S */
  103. 0xE0, 0x40, 0x40, 0x40, 0x40, /*[52] 0x54 T */
  104. 0xA0, 0xA0, 0xA0, 0xA0, 0xE0, /*[53] 0x55 U */
  105. 0xA0, 0xA0, 0xA0, 0xA0, 0x40, /*[54] 0x56 V */
  106. 0x88, 0x88, 0x88, 0xA8, 0x50, /*[55] 0x57 W */
  107. 0xA0, 0xA0, 0x40, 0xA0, 0xA0, /*[56] 0x58 X */
  108. 0xA0, 0xA0, 0xE0, 0x20, 0xC0, /*[57] 0x59 Y */
  109. 0xE0, 0x20, 0x40, 0x80, 0xE0, /*[58] 0x5A Z */
  110. 0xE0, 0x80, 0x80, 0x80, 0xE0, /*[59] 0x5B bracketleft */
  111. 0x80, 0x40, 0x20, /*[60] 0x5C backslash */
  112. 0xE0, 0x20, 0x20, 0x20, 0xE0, /*[61] 0x5D bracketright */
  113. 0x40, 0xA0, /*[62] 0x5E asciicircum */
  114. 0xE0, /*[63] 0x5F underscore */
  115. 0x80, 0x40, /*[64] 0x60 grave */
  116. 0xC0, 0x60, 0xA0, 0xE0, /*[65] 0x61 a */
  117. 0x80, 0xC0, 0xA0, 0xA0, 0xC0, /*[66] 0x62 b */
  118. 0x60, 0x80, 0x80, 0x60, /*[67] 0x63 c */
  119. 0x20, 0x60, 0xA0, 0xA0, 0x60, /*[68] 0x64 d */
  120. 0x60, 0xA0, 0xC0, 0x60, /*[69] 0x65 e */
  121. 0x20, 0x40, 0xE0, 0x40, 0x40, /*[70] 0x66 f */
  122. 0x60, 0xA0, 0xE0, 0x20, 0x40, /*[71] 0x67 g */
  123. 0x80, 0xC0, 0xA0, 0xA0, 0xA0, /*[72] 0x68 h */
  124. 0x80, 0x00, 0x80, 0x80, 0x80, /*[73] 0x69 i */
  125. 0x20, 0x00, 0x20, 0x20, 0xA0, 0x40, /*[74] 0x6A j */
  126. 0x80, 0xA0, 0xC0, 0xC0, 0xA0, /*[75] 0x6B k */
  127. 0xC0, 0x40, 0x40, 0x40, 0xE0, /*[76] 0x6C l */
  128. 0xE0, 0xE0, 0xE0, 0xA0, /*[77] 0x6D m */
  129. 0xC0, 0xA0, 0xA0, 0xA0, /*[78] 0x6E n */
  130. 0x40, 0xA0, 0xA0, 0x40, /*[79] 0x6F o */
  131. 0xC0, 0xA0, 0xA0, 0xC0, 0x80, /*[80] 0x70 p */
  132. 0x60, 0xA0, 0xA0, 0x60, 0x20, /*[81] 0x71 q */
  133. 0x60, 0x80, 0x80, 0x80, /*[82] 0x72 r */
  134. 0x60, 0xC0, 0x60, 0xC0, /*[83] 0x73 s */
  135. 0x40, 0xE0, 0x40, 0x40, 0x60, /*[84] 0x74 t */
  136. 0xA0, 0xA0, 0xA0, 0x60, /*[85] 0x75 u */
  137. 0xA0, 0xA0, 0xE0, 0x40, /*[86] 0x76 v */
  138. 0xA0, 0xE0, 0xE0, 0xE0, /*[87] 0x77 w */
  139. 0xA0, 0x40, 0x40, 0xA0, /*[88] 0x78 x */
  140. 0xA0, 0xA0, 0x60, 0x20, 0x40, /*[89] 0x79 y */
  141. 0xE0, 0x60, 0xC0, 0xE0, /*[90] 0x7A z */
  142. 0x60, 0x40, 0x80, 0x40, 0x60, /*[91] 0x7B braceleft */
  143. 0x80, 0x80, 0x00, 0x80, 0x80, /*[92] 0x7C bar */
  144. 0xC0, 0x40, 0x20, 0x40, 0xC0, /*[93] 0x7D braceright */
  145. 0x60, 0xC0, /*[94] 0x7E asciitilde */
  146. #if (TOMTHUMB_USE_EXTENDED)
  147. 0x80, 0x00, 0x80, 0x80, 0x80, /*[95] 0xA1 exclamdown */
  148. 0x40, 0xE0, 0x80, 0xE0, 0x40, /*[96] 0xA2 cent */
  149. 0x60, 0x40, 0xE0, 0x40, 0xE0, /*[97] 0xA3 sterling */
  150. 0xA0, 0x40, 0xE0, 0x40, 0xA0, /*[98] 0xA4 currency */
  151. 0xA0, 0xA0, 0x40, 0xE0, 0x40, /*[99] 0xA5 yen */
  152. 0x80, 0x80, 0x00, 0x80, 0x80, /*[100] 0xA6 brokenbar */
  153. 0x60, 0x40, 0xA0, 0x40, 0xC0, /*[101] 0xA7 section */
  154. 0xA0, /*[102] 0xA8 dieresis */
  155. 0x60, 0x80, 0x60, /*[103] 0xA9 copyright */
  156. 0x60, 0xA0, 0xE0, 0x00, 0xE0, /*[104] 0xAA ordfeminine */
  157. 0x40, 0x80, 0x40, /*[105] 0xAB guillemotleft */
  158. 0xE0, 0x20, /*[106] 0xAC logicalnot */
  159. 0xC0, /*[107] 0xAD softhyphen */
  160. 0xC0, 0xC0, 0xA0, /*[108] 0xAE registered */
  161. 0xE0, /*[109] 0xAF macron */
  162. 0xC0, 0xC0, 0x00, /*[110] 0xB0 degree */
  163. 0x40, 0xE0, 0x40, 0x00, 0xE0, /*[111] 0xB1 plusminus */
  164. 0xC0, 0x40, 0x60, /*[112] 0xB2 twosuperior */
  165. 0xE0, 0x60, 0xE0, /*[113] 0xB3 threesuperior */
  166. 0x40, 0x80, /*[114] 0xB4 acute */
  167. 0xA0, 0xA0, 0xA0, 0xC0, 0x80, /*[115] 0xB5 mu */
  168. 0x60, 0xA0, 0x60, 0x60, 0x60, /*[116] 0xB6 paragraph */
  169. 0xE0, 0xE0, 0xE0, /*[117] 0xB7 periodcentered */
  170. 0x40, 0x20, 0xC0, /*[118] 0xB8 cedilla */
  171. 0x80, 0x80, 0x80, /*[119] 0xB9 onesuperior */
  172. 0x40, 0xA0, 0x40, 0x00, 0xE0, /*[120] 0xBA ordmasculine */
  173. 0x80, 0x40, 0x80, /*[121] 0xBB guillemotright */
  174. 0x80, 0x80, 0x00, 0x60, 0x20, /*[122] 0xBC onequarter */
  175. 0x80, 0x80, 0x00, 0xC0, 0x60, /*[123] 0xBD onehalf */
  176. 0xC0, 0xC0, 0x00, 0x60, 0x20, /*[124] 0xBE threequarters */
  177. 0x40, 0x00, 0x40, 0x80, 0xE0, /*[125] 0xBF questiondown */
  178. 0x40, 0x20, 0x40, 0xE0, 0xA0, /*[126] 0xC0 Agrave */
  179. 0x40, 0x80, 0x40, 0xE0, 0xA0, /*[127] 0xC1 Aacute */
  180. 0xE0, 0x00, 0x40, 0xE0, 0xA0, /*[128] 0xC2 Acircumflex */
  181. 0x60, 0xC0, 0x40, 0xE0, 0xA0, /*[129] 0xC3 Atilde */
  182. 0xA0, 0x40, 0xA0, 0xE0, 0xA0, /*[130] 0xC4 Adieresis */
  183. 0xC0, 0xC0, 0xA0, 0xE0, 0xA0, /*[131] 0xC5 Aring */
  184. 0x60, 0xC0, 0xE0, 0xC0, 0xE0, /*[132] 0xC6 AE */
  185. 0x60, 0x80, 0x80, 0x60, 0x20, 0x40, /*[133] 0xC7 Ccedilla */
  186. 0x40, 0x20, 0xE0, 0xC0, 0xE0, /*[134] 0xC8 Egrave */
  187. 0x40, 0x80, 0xE0, 0xC0, 0xE0, /*[135] 0xC9 Eacute */
  188. 0xE0, 0x00, 0xE0, 0xC0, 0xE0, /*[136] 0xCA Ecircumflex */
  189. 0xA0, 0x00, 0xE0, 0xC0, 0xE0, /*[137] 0xCB Edieresis */
  190. 0x40, 0x20, 0xE0, 0x40, 0xE0, /*[138] 0xCC Igrave */
  191. 0x40, 0x80, 0xE0, 0x40, 0xE0, /*[139] 0xCD Iacute */
  192. 0xE0, 0x00, 0xE0, 0x40, 0xE0, /*[140] 0xCE Icircumflex */
  193. 0xA0, 0x00, 0xE0, 0x40, 0xE0, /*[141] 0xCF Idieresis */
  194. 0xC0, 0xA0, 0xE0, 0xA0, 0xC0, /*[142] 0xD0 Eth */
  195. 0xC0, 0x60, 0xA0, 0xE0, 0xA0, /*[143] 0xD1 Ntilde */
  196. 0x40, 0x20, 0xE0, 0xA0, 0xE0, /*[144] 0xD2 Ograve */
  197. 0x40, 0x80, 0xE0, 0xA0, 0xE0, /*[145] 0xD3 Oacute */
  198. 0xE0, 0x00, 0xE0, 0xA0, 0xE0, /*[146] 0xD4 Ocircumflex */
  199. 0xC0, 0x60, 0xE0, 0xA0, 0xE0, /*[147] 0xD5 Otilde */
  200. 0xA0, 0x00, 0xE0, 0xA0, 0xE0, /*[148] 0xD6 Odieresis */
  201. 0xA0, 0x40, 0xA0, /*[149] 0xD7 multiply */
  202. 0x60, 0xA0, 0xE0, 0xA0, 0xC0, /*[150] 0xD8 Oslash */
  203. 0x80, 0x40, 0xA0, 0xA0, 0xE0, /*[151] 0xD9 Ugrave */
  204. 0x20, 0x40, 0xA0, 0xA0, 0xE0, /*[152] 0xDA Uacute */
  205. 0xE0, 0x00, 0xA0, 0xA0, 0xE0, /*[153] 0xDB Ucircumflex */
  206. 0xA0, 0x00, 0xA0, 0xA0, 0xE0, /*[154] 0xDC Udieresis */
  207. 0x20, 0x40, 0xA0, 0xE0, 0x40, /*[155] 0xDD Yacute */
  208. 0x80, 0xE0, 0xA0, 0xE0, 0x80, /*[156] 0xDE Thorn */
  209. 0x60, 0xA0, 0xC0, 0xA0, 0xC0, 0x80, /*[157] 0xDF germandbls */
  210. 0x40, 0x20, 0x60, 0xA0, 0xE0, /*[158] 0xE0 agrave */
  211. 0x40, 0x80, 0x60, 0xA0, 0xE0, /*[159] 0xE1 aacute */
  212. 0xE0, 0x00, 0x60, 0xA0, 0xE0, /*[160] 0xE2 acircumflex */
  213. 0x60, 0xC0, 0x60, 0xA0, 0xE0, /*[161] 0xE3 atilde */
  214. 0xA0, 0x00, 0x60, 0xA0, 0xE0, /*[162] 0xE4 adieresis */
  215. 0x60, 0x60, 0x60, 0xA0, 0xE0, /*[163] 0xE5 aring */
  216. 0x60, 0xE0, 0xE0, 0xC0, /*[164] 0xE6 ae */
  217. 0x60, 0x80, 0x60, 0x20, 0x40, /*[165] 0xE7 ccedilla */
  218. 0x40, 0x20, 0x60, 0xE0, 0x60, /*[166] 0xE8 egrave */
  219. 0x40, 0x80, 0x60, 0xE0, 0x60, /*[167] 0xE9 eacute */
  220. 0xE0, 0x00, 0x60, 0xE0, 0x60, /*[168] 0xEA ecircumflex */
  221. 0xA0, 0x00, 0x60, 0xE0, 0x60, /*[169] 0xEB edieresis */
  222. 0x80, 0x40, 0x80, 0x80, 0x80, /*[170] 0xEC igrave */
  223. 0x40, 0x80, 0x40, 0x40, 0x40, /*[171] 0xED iacute */
  224. 0xE0, 0x00, 0x40, 0x40, 0x40, /*[172] 0xEE icircumflex */
  225. 0xA0, 0x00, 0x40, 0x40, 0x40, /*[173] 0xEF idieresis */
  226. 0x60, 0xC0, 0x60, 0xA0, 0x60, /*[174] 0xF0 eth */
  227. 0xC0, 0x60, 0xC0, 0xA0, 0xA0, /*[175] 0xF1 ntilde */
  228. 0x40, 0x20, 0x40, 0xA0, 0x40, /*[176] 0xF2 ograve */
  229. 0x40, 0x80, 0x40, 0xA0, 0x40, /*[177] 0xF3 oacute */
  230. 0xE0, 0x00, 0x40, 0xA0, 0x40, /*[178] 0xF4 ocircumflex */
  231. 0xC0, 0x60, 0x40, 0xA0, 0x40, /*[179] 0xF5 otilde */
  232. 0xA0, 0x00, 0x40, 0xA0, 0x40, /*[180] 0xF6 odieresis */
  233. 0x40, 0x00, 0xE0, 0x00, 0x40, /*[181] 0xF7 divide */
  234. 0x60, 0xE0, 0xA0, 0xC0, /*[182] 0xF8 oslash */
  235. 0x80, 0x40, 0xA0, 0xA0, 0x60, /*[183] 0xF9 ugrave */
  236. 0x20, 0x40, 0xA0, 0xA0, 0x60, /*[184] 0xFA uacute */
  237. 0xE0, 0x00, 0xA0, 0xA0, 0x60, /*[185] 0xFB ucircumflex */
  238. 0xA0, 0x00, 0xA0, 0xA0, 0x60, /*[186] 0xFC udieresis */
  239. 0x20, 0x40, 0xA0, 0x60, 0x20, 0x40, /*[187] 0xFD yacute */
  240. 0x80, 0xC0, 0xA0, 0xC0, 0x80, /*[188] 0xFE thorn */
  241. 0xA0, 0x00, 0xA0, 0x60, 0x20, 0x40, /*[189] 0xFF ydieresis */
  242. 0x00, /*[190] 0x11D gcircumflex */
  243. 0x60, 0xC0, 0xE0, 0xC0, 0x60, /*[191] 0x152 OE */
  244. 0x60, 0xE0, 0xC0, 0xE0, /*[192] 0x153 oe */
  245. 0xA0, 0x60, 0xC0, 0x60, 0xC0, /*[193] 0x160 Scaron */
  246. 0xA0, 0x60, 0xC0, 0x60, 0xC0, /*[194] 0x161 scaron */
  247. 0xA0, 0x00, 0xA0, 0x40, 0x40, /*[195] 0x178 Ydieresis */
  248. 0xA0, 0xE0, 0x60, 0xC0, 0xE0, /*[196] 0x17D Zcaron */
  249. 0xA0, 0xE0, 0x60, 0xC0, 0xE0, /*[197] 0x17E zcaron */
  250. 0x00, /*[198] 0xEA4 uni0EA4 */
  251. 0x00, /*[199] 0x13A0 uni13A0 */
  252. 0x80, /*[200] 0x2022 bullet */
  253. 0xA0, /*[201] 0x2026 ellipsis */
  254. 0x60, 0xE0, 0xE0, 0xC0, 0x60, /*[202] 0x20AC Euro */
  255. 0xE0, 0xA0, 0xA0, 0xA0, 0xE0, /*[203] 0xFFFD uniFFFD */
  256. #endif /* (TOMTHUMB_USE_EXTENDED) */
  257. };
  258. /* {offset, width, height, advance cursor, x offset, y offset} */
  259. const GFXglyph TomThumbGlyphs[] PROGMEM = {
  260. { 0, 8, 1, 2, 0, -5 }, /*[0] 0x20 space */
  261. { 1, 8, 5, 2, 0, -5 }, /*[1] 0x21 exclam */
  262. { 6, 8, 2, 4, 0, -5 }, /*[2] 0x22 quotedbl */
  263. { 8, 8, 5, 4, 0, -5 }, /*[3] 0x23 numbersign */
  264. { 13, 8, 5, 4, 0, -5 }, /*[4] 0x24 dollar */
  265. { 18, 8, 5, 4, 0, -5 }, /*[5] 0x25 percent */
  266. { 23, 8, 5, 4, 0, -5 }, /*[6] 0x26 ampersand */
  267. { 28, 8, 2, 2, 0, -5 }, /*[7] 0x27 quotesingle */
  268. { 30, 8, 5, 3, 0, -5 }, /*[8] 0x28 parenleft */
  269. { 35, 8, 5, 3, 0, -5 }, /*[9] 0x29 parenright */
  270. { 40, 8, 3, 4, 0, -5 }, /*[10] 0x2A asterisk */
  271. { 43, 8, 3, 4, 0, -4 }, /*[11] 0x2B plus */
  272. { 46, 8, 2, 3, 0, -2 }, /*[12] 0x2C comma */
  273. { 48, 8, 1, 4, 0, -3 }, /*[13] 0x2D hyphen */
  274. { 49, 8, 1, 2, 0, -1 }, /*[14] 0x2E period */
  275. { 50, 8, 5, 4, 0, -5 }, /*[15] 0x2F slash */
  276. { 55, 8, 5, 4, 0, -5 }, /*[16] 0x30 zero */
  277. { 60, 8, 5, 4, 0, -5 }, /*[17] 0x31 one */
  278. { 65, 8, 5, 4, 0, -5 }, /*[18] 0x32 two */
  279. { 70, 8, 5, 4, 0, -5 }, /*[19] 0x33 three */
  280. { 75, 8, 5, 4, 0, -5 }, /*[20] 0x34 four */
  281. { 80, 8, 5, 4, 0, -5 }, /*[21] 0x35 five */
  282. { 85, 8, 5, 4, 0, -5 }, /*[22] 0x36 six */
  283. { 90, 8, 5, 4, 0, -5 }, /*[23] 0x37 seven */
  284. { 95, 8, 5, 4, 0, -5 }, /*[24] 0x38 eight */
  285. { 100, 8, 5, 4, 0, -5 }, /*[25] 0x39 nine */
  286. { 105, 8, 3, 2, 0, -4 }, /*[26] 0x3A colon */
  287. { 108, 8, 4, 3, 0, -4 }, /*[27] 0x3B semicolon */
  288. { 112, 8, 5, 4, 0, -5 }, /*[28] 0x3C less */
  289. { 117, 8, 3, 4, 0, -4 }, /*[29] 0x3D equal */
  290. { 120, 8, 5, 4, 0, -5 }, /*[30] 0x3E greater */
  291. { 125, 8, 5, 4, 0, -5 }, /*[31] 0x3F question */
  292. { 130, 8, 5, 4, 0, -5 }, /*[32] 0x40 at */
  293. { 135, 8, 5, 4, 0, -5 }, /*[33] 0x41 A */
  294. { 140, 8, 5, 4, 0, -5 }, /*[34] 0x42 B */
  295. { 145, 8, 5, 4, 0, -5 }, /*[35] 0x43 C */
  296. { 150, 8, 5, 4, 0, -5 }, /*[36] 0x44 D */
  297. { 155, 8, 5, 4, 0, -5 }, /*[37] 0x45 E */
  298. { 160, 8, 5, 4, 0, -5 }, /*[38] 0x46 F */
  299. { 165, 8, 5, 4, 0, -5 }, /*[39] 0x47 G */
  300. { 170, 8, 5, 4, 0, -5 }, /*[40] 0x48 H */
  301. { 175, 8, 5, 2, 0, -5 }, /*[41] 0x49 I */
  302. { 180, 8, 5, 4, 0, -5 }, /*[42] 0x4A J */
  303. { 185, 8, 5, 4, 0, -5 }, /*[43] 0x4B K */
  304. { 190, 8, 5, 4, 0, -5 }, /*[44] 0x4C L */
  305. { 195, 8, 5, 6, 0, -5 }, /*[45] 0x4D M */
  306. { 200, 8, 5, 5, 0, -5 }, /*[46] 0x4E N */
  307. { 205, 8, 5, 4, 0, -5 }, /*[47] 0x4F O */
  308. { 210, 8, 5, 4, 0, -5 }, /*[48] 0x50 P */
  309. { 215, 8, 5, 5, 0, -5 }, /*[49] 0x51 Q */
  310. { 220, 8, 5, 4, 0, -5 }, /*[50] 0x52 R */
  311. { 225, 8, 5, 4, 0, -5 }, /*[51] 0x53 S */
  312. { 230, 8, 5, 4, 0, -5 }, /*[52] 0x54 T */
  313. { 235, 8, 5, 4, 0, -5 }, /*[53] 0x55 U */
  314. { 240, 8, 5, 4, 0, -5 }, /*[54] 0x56 V */
  315. { 245, 8, 5, 6, 0, -5 }, /*[55] 0x57 W */
  316. { 250, 8, 5, 4, 0, -5 }, /*[56] 0x58 X */
  317. { 255, 8, 5, 4, 0, -5 }, /*[57] 0x59 Y */
  318. { 260, 8, 5, 4, 0, -5 }, /*[58] 0x5A Z */
  319. { 265, 8, 5, 4, 0, -5 }, /*[59] 0x5B bracketleft */
  320. { 270, 8, 3, 4, 0, -4 }, /*[60] 0x5C backslash */
  321. { 273, 8, 5, 4, 0, -5 }, /*[61] 0x5D bracketright */
  322. { 278, 8, 2, 4, 0, -5 }, /*[62] 0x5E asciicircum */
  323. { 280, 8, 1, 4, 0, -1 }, /*[63] 0x5F underscore */
  324. { 281, 8, 2, 3, 0, -5 }, /*[64] 0x60 grave */
  325. { 283, 8, 4, 4, 0, -4 }, /*[65] 0x61 a */
  326. { 287, 8, 5, 4, 0, -5 }, /*[66] 0x62 b */
  327. { 292, 8, 4, 4, 0, -4 }, /*[67] 0x63 c */
  328. { 296, 8, 5, 4, 0, -5 }, /*[68] 0x64 d */
  329. { 301, 8, 4, 4, 0, -4 }, /*[69] 0x65 e */
  330. { 305, 8, 5, 4, 0, -5 }, /*[70] 0x66 f */
  331. { 310, 8, 5, 4, 0, -4 }, /*[71] 0x67 g */
  332. { 315, 8, 5, 4, 0, -5 }, /*[72] 0x68 h */
  333. { 320, 8, 5, 2, 0, -5 }, /*[73] 0x69 i */
  334. { 325, 8, 6, 4, 0, -5 }, /*[74] 0x6A j */
  335. { 331, 8, 5, 4, 0, -5 }, /*[75] 0x6B k */
  336. { 336, 8, 5, 4, 0, -5 }, /*[76] 0x6C l */
  337. { 341, 8, 4, 4, 0, -4 }, /*[77] 0x6D m */
  338. { 345, 8, 4, 4, 0, -4 }, /*[78] 0x6E n */
  339. { 349, 8, 4, 4, 0, -4 }, /*[79] 0x6F o */
  340. { 353, 8, 5, 4, 0, -4 }, /*[80] 0x70 p */
  341. { 358, 8, 5, 4, 0, -4 }, /*[81] 0x71 q */
  342. { 363, 8, 4, 4, 0, -4 }, /*[82] 0x72 r */
  343. { 367, 8, 4, 4, 0, -4 }, /*[83] 0x73 s */
  344. { 371, 8, 5, 4, 0, -5 }, /*[84] 0x74 t */
  345. { 376, 8, 4, 4, 0, -4 }, /*[85] 0x75 u */
  346. { 380, 8, 4, 4, 0, -4 }, /*[86] 0x76 v */
  347. { 384, 8, 4, 4, 0, -4 }, /*[87] 0x77 w */
  348. { 388, 8, 4, 4, 0, -4 }, /*[88] 0x78 x */
  349. { 392, 8, 5, 4, 0, -4 }, /*[89] 0x79 y */
  350. { 397, 8, 4, 4, 0, -4 }, /*[90] 0x7A z */
  351. { 401, 8, 5, 4, 0, -5 }, /*[91] 0x7B braceleft */
  352. { 406, 8, 5, 2, 0, -5 }, /*[92] 0x7C bar */
  353. { 411, 8, 5, 4, 0, -5 }, /*[93] 0x7D braceright */
  354. { 416, 8, 2, 4, 0, -5 }, /*[94] 0x7E asciitilde */
  355. #if (TOMTHUMB_USE_EXTENDED)
  356. { 418, 8, 5, 2, 0, -5 }, /*[95] 0xA1 exclamdown */
  357. { 423, 8, 5, 4, 0, -5 }, /*[96] 0xA2 cent */
  358. { 428, 8, 5, 4, 0, -5 }, /*[97] 0xA3 sterling */
  359. { 433, 8, 5, 4, 0, -5 }, /*[98] 0xA4 currency */
  360. { 438, 8, 5, 4, 0, -5 }, /*[99] 0xA5 yen */
  361. { 443, 8, 5, 2, 0, -5 }, /*[100] 0xA6 brokenbar */
  362. { 448, 8, 5, 4, 0, -5 }, /*[101] 0xA7 section */
  363. { 453, 8, 1, 4, 0, -5 }, /*[102] 0xA8 dieresis */
  364. { 454, 8, 3, 4, 0, -5 }, /*[103] 0xA9 copyright */
  365. { 457, 8, 5, 4, 0, -5 }, /*[104] 0xAA ordfeminine */
  366. { 462, 8, 3, 3, 0, -5 }, /*[105] 0xAB guillemotleft */
  367. { 465, 8, 2, 4, 0, -4 }, /*[106] 0xAC logicalnot */
  368. { 467, 8, 1, 3, 0, -3 }, /*[107] 0xAD softhyphen */
  369. { 468, 8, 3, 4, 0, -5 }, /*[108] 0xAE registered */
  370. { 471, 8, 1, 4, 0, -5 }, /*[109] 0xAF macron */
  371. { 472, 8, 3, 4, 0, -5 }, /*[110] 0xB0 degree */
  372. { 475, 8, 5, 4, 0, -5 }, /*[111] 0xB1 plusminus */
  373. { 480, 8, 3, 4, 0, -5 }, /*[112] 0xB2 twosuperior */
  374. { 483, 8, 3, 4, 0, -5 }, /*[113] 0xB3 threesuperior */
  375. { 486, 8, 2, 3, 0, -5 }, /*[114] 0xB4 acute */
  376. { 488, 8, 5, 4, 0, -5 }, /*[115] 0xB5 mu */
  377. { 493, 8, 5, 4, 0, -5 }, /*[116] 0xB6 paragraph */
  378. { 498, 8, 3, 4, 0, -4 }, /*[117] 0xB7 periodcentered */
  379. { 501, 8, 3, 4, 0, -3 }, /*[118] 0xB8 cedilla */
  380. { 504, 8, 3, 2, 0, -5 }, /*[119] 0xB9 onesuperior */
  381. { 507, 8, 5, 4, 0, -5 }, /*[120] 0xBA ordmasculine */
  382. { 512, 8, 3, 3, 0, -5 }, /*[121] 0xBB guillemotright */
  383. { 515, 8, 5, 4, 0, -5 }, /*[122] 0xBC onequarter */
  384. { 520, 8, 5, 4, 0, -5 }, /*[123] 0xBD onehalf */
  385. { 525, 8, 5, 4, 0, -5 }, /*[124] 0xBE threequarters */
  386. { 530, 8, 5, 4, 0, -5 }, /*[125] 0xBF questiondown */
  387. { 535, 8, 5, 4, 0, -5 }, /*[126] 0xC0 Agrave */
  388. { 540, 8, 5, 4, 0, -5 }, /*[127] 0xC1 Aacute */
  389. { 545, 8, 5, 4, 0, -5 }, /*[128] 0xC2 Acircumflex */
  390. { 550, 8, 5, 4, 0, -5 }, /*[129] 0xC3 Atilde */
  391. { 555, 8, 5, 4, 0, -5 }, /*[130] 0xC4 Adieresis */
  392. { 560, 8, 5, 4, 0, -5 }, /*[131] 0xC5 Aring */
  393. { 565, 8, 5, 4, 0, -5 }, /*[132] 0xC6 AE */
  394. { 570, 8, 6, 4, 0, -5 }, /*[133] 0xC7 Ccedilla */
  395. { 576, 8, 5, 4, 0, -5 }, /*[134] 0xC8 Egrave */
  396. { 581, 8, 5, 4, 0, -5 }, /*[135] 0xC9 Eacute */
  397. { 586, 8, 5, 4, 0, -5 }, /*[136] 0xCA Ecircumflex */
  398. { 591, 8, 5, 4, 0, -5 }, /*[137] 0xCB Edieresis */
  399. { 596, 8, 5, 4, 0, -5 }, /*[138] 0xCC Igrave */
  400. { 601, 8, 5, 4, 0, -5 }, /*[139] 0xCD Iacute */
  401. { 606, 8, 5, 4, 0, -5 }, /*[140] 0xCE Icircumflex */
  402. { 611, 8, 5, 4, 0, -5 }, /*[141] 0xCF Idieresis */
  403. { 616, 8, 5, 4, 0, -5 }, /*[142] 0xD0 Eth */
  404. { 621, 8, 5, 4, 0, -5 }, /*[143] 0xD1 Ntilde */
  405. { 626, 8, 5, 4, 0, -5 }, /*[144] 0xD2 Ograve */
  406. { 631, 8, 5, 4, 0, -5 }, /*[145] 0xD3 Oacute */
  407. { 636, 8, 5, 4, 0, -5 }, /*[146] 0xD4 Ocircumflex */
  408. { 641, 8, 5, 4, 0, -5 }, /*[147] 0xD5 Otilde */
  409. { 646, 8, 5, 4, 0, -5 }, /*[148] 0xD6 Odieresis */
  410. { 651, 8, 3, 4, 0, -4 }, /*[149] 0xD7 multiply */
  411. { 654, 8, 5, 4, 0, -5 }, /*[150] 0xD8 Oslash */
  412. { 659, 8, 5, 4, 0, -5 }, /*[151] 0xD9 Ugrave */
  413. { 664, 8, 5, 4, 0, -5 }, /*[152] 0xDA Uacute */
  414. { 669, 8, 5, 4, 0, -5 }, /*[153] 0xDB Ucircumflex */
  415. { 674, 8, 5, 4, 0, -5 }, /*[154] 0xDC Udieresis */
  416. { 679, 8, 5, 4, 0, -5 }, /*[155] 0xDD Yacute */
  417. { 684, 8, 5, 4, 0, -5 }, /*[156] 0xDE Thorn */
  418. { 689, 8, 6, 4, 0, -5 }, /*[157] 0xDF germandbls */
  419. { 695, 8, 5, 4, 0, -5 }, /*[158] 0xE0 agrave */
  420. { 700, 8, 5, 4, 0, -5 }, /*[159] 0xE1 aacute */
  421. { 705, 8, 5, 4, 0, -5 }, /*[160] 0xE2 acircumflex */
  422. { 710, 8, 5, 4, 0, -5 }, /*[161] 0xE3 atilde */
  423. { 715, 8, 5, 4, 0, -5 }, /*[162] 0xE4 adieresis */
  424. { 720, 8, 5, 4, 0, -5 }, /*[163] 0xE5 aring */
  425. { 725, 8, 4, 4, 0, -4 }, /*[164] 0xE6 ae */
  426. { 729, 8, 5, 4, 0, -4 }, /*[165] 0xE7 ccedilla */
  427. { 734, 8, 5, 4, 0, -5 }, /*[166] 0xE8 egrave */
  428. { 739, 8, 5, 4, 0, -5 }, /*[167] 0xE9 eacute */
  429. { 744, 8, 5, 4, 0, -5 }, /*[168] 0xEA ecircumflex */
  430. { 749, 8, 5, 4, 0, -5 }, /*[169] 0xEB edieresis */
  431. { 754, 8, 5, 3, 0, -5 }, /*[170] 0xEC igrave */
  432. { 759, 8, 5, 3, 0, -5 }, /*[171] 0xED iacute */
  433. { 764, 8, 5, 4, 0, -5 }, /*[172] 0xEE icircumflex */
  434. { 769, 8, 5, 4, 0, -5 }, /*[173] 0xEF idieresis */
  435. { 774, 8, 5, 4, 0, -5 }, /*[174] 0xF0 eth */
  436. { 779, 8, 5, 4, 0, -5 }, /*[175] 0xF1 ntilde */
  437. { 784, 8, 5, 4, 0, -5 }, /*[176] 0xF2 ograve */
  438. { 789, 8, 5, 4, 0, -5 }, /*[177] 0xF3 oacute */
  439. { 794, 8, 5, 4, 0, -5 }, /*[178] 0xF4 ocircumflex */
  440. { 799, 8, 5, 4, 0, -5 }, /*[179] 0xF5 otilde */
  441. { 804, 8, 5, 4, 0, -5 }, /*[180] 0xF6 odieresis */
  442. { 809, 8, 5, 4, 0, -5 }, /*[181] 0xF7 divide */
  443. { 814, 8, 4, 4, 0, -4 }, /*[182] 0xF8 oslash */
  444. { 818, 8, 5, 4, 0, -5 }, /*[183] 0xF9 ugrave */
  445. { 823, 8, 5, 4, 0, -5 }, /*[184] 0xFA uacute */
  446. { 828, 8, 5, 4, 0, -5 }, /*[185] 0xFB ucircumflex */
  447. { 833, 8, 5, 4, 0, -5 }, /*[186] 0xFC udieresis */
  448. { 838, 8, 6, 4, 0, -5 }, /*[187] 0xFD yacute */
  449. { 844, 8, 5, 4, 0, -4 }, /*[188] 0xFE thorn */
  450. { 849, 8, 6, 4, 0, -5 }, /*[189] 0xFF ydieresis */
  451. { 855, 8, 1, 2, 0, -1 }, /*[190] 0x11D gcircumflex */
  452. { 856, 8, 5, 4, 0, -5 }, /*[191] 0x152 OE */
  453. { 861, 8, 4, 4, 0, -4 }, /*[192] 0x153 oe */
  454. { 865, 8, 5, 4, 0, -5 }, /*[193] 0x160 Scaron */
  455. { 870, 8, 5, 4, 0, -5 }, /*[194] 0x161 scaron */
  456. { 875, 8, 5, 4, 0, -5 }, /*[195] 0x178 Ydieresis */
  457. { 880, 8, 5, 4, 0, -5 }, /*[196] 0x17D Zcaron */
  458. { 885, 8, 5, 4, 0, -5 }, /*[197] 0x17E zcaron */
  459. { 890, 8, 1, 2, 0, -1 }, /*[198] 0xEA4 uni0EA4 */
  460. { 891, 8, 1, 2, 0, -1 }, /*[199] 0x13A0 uni13A0 */
  461. { 892, 8, 1, 2, 0, -3 }, /*[200] 0x2022 bullet */
  462. { 893, 8, 1, 4, 0, -1 }, /*[201] 0x2026 ellipsis */
  463. { 894, 8, 5, 4, 0, -5 }, /*[202] 0x20AC Euro */
  464. { 899, 8, 5, 4, 0, -5 }, /*[203] 0xFFFD uniFFFD */
  465. #endif /* (TOMTHUMB_USE_EXTENDED) */
  466. };
  467. #if (TOMTHUMB_USE_EXTENDED)
  468. const GFXfont TomThumb PROGMEM = {
  469. (uint8_t *)TomThumbBitmaps,
  470. (GFXglyph *)TomThumbGlyphs,
  471. 0x20, 0xEB, 6 };
  472. #else /*(No extended char set)*/
  473. const GFXfont TomThumb PROGMEM = {
  474. (uint8_t *)TomThumbBitmaps,
  475. (GFXglyph *)TomThumbGlyphs,
  476. 0x20, 0x7E, 6 };
  477. #endif