Repo for ESP32 Weather Station Development
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

332 lines
9.6KB

  1. // This comes with no warranty, implied or otherwise
  2. // This data structure was designed to support Proportional fonts
  3. // on Arduinos. It can however handle any ttf font that has been converted
  4. // using the conversion program. These could be fixed width or proportional
  5. // fonts. Individual characters do not have to be multiples of 8 bits wide.
  6. // Any width is fine and does not need to be fixed.
  7. // The data bits are packed to minimize data requirements, but the tradeoff
  8. // is that a header is required per character.
  9. // Ubuntu16.c
  10. // Point Size : 16
  11. // Memory usage : 1433 bytes
  12. // # characters : 95
  13. // Header Format (to make Arduino UTFT Compatible):
  14. // ------------------------------------------------
  15. // Character Width (Used as a marker to indicate use this format. i.e.: = 0x00)
  16. // Character Height
  17. // First Character (Reserved. 0x00)
  18. // Number Of Characters (Reserved. 0x00)
  19. const unsigned char tft_Ubuntu16[] =
  20. {
  21. 0x00, 0x10, 0x00, 0x00,
  22. // Individual Character Format:
  23. // ----------------------------
  24. // Character Code
  25. // Adjusted Y Offset
  26. // Width
  27. // Height
  28. // xOffset
  29. // xDelta (the distance to move the cursor. Effective width of the character.)
  30. // Data[n]
  31. // NOTE: You can remove any of these characters if they are not needed in
  32. // your application. The first character number in each Glyph indicates
  33. // the ASCII character code. Therefore, these do not have to be sequential.
  34. // Just remove all the content for a particular character to save space.
  35. // ' '
  36. 0x20,0x0D,0x00,0x00,0x00,0x04,
  37. // '!'
  38. 0x21,0x02,0x01,0x0B,0x01,0x04,
  39. 0xFC,0x60,
  40. // '"'
  41. 0x22,0x00,0x04,0x04,0x01,0x07,
  42. 0x99,0x99,
  43. // '#'
  44. 0x23,0x02,0x09,0x0B,0x01,0x0B,
  45. 0x11,0x08,0x84,0x5F,0xF2,0x21,0x10,0x89,0xFF,0x44,0x22,0x11,0x00,
  46. // '$'
  47. 0x24,0x00,0x07,0x10,0x01,0x09,
  48. 0x10,0x20,0xF6,0x08,0x10,0x18,0x08,0x0C,0x0C,0x08,0x3F,0xC2,0x04,0x00,
  49. // '%'
  50. 0x25,0x02,0x0C,0x0B,0x01,0x0E,
  51. 0x70,0x4D,0x88,0x89,0x08,0x90,0xDA,0x07,0x4E,0x05,0xB0,0x91,0x09,0x11,0x1B,0x20,0xE0,
  52. // '&'
  53. 0x26,0x02,0x0A,0x0B,0x01,0x0B,
  54. 0x3C,0x18,0x84,0x21,0x08,0x2C,0x0C,0x04,0x8A,0x10,0x83,0x30,0xC7,0xC8,
  55. // '''
  56. 0x27,0x00,0x01,0x04,0x01,0x04,
  57. 0xF0,
  58. // '('
  59. 0x28,0x00,0x04,0x10,0x01,0x05,
  60. 0x02,0x44,0x48,0x88,0x88,0x84,0x44,0x20,
  61. // ')'
  62. 0x29,0x00,0x04,0x10,0x00,0x05,
  63. 0x04,0x22,0x21,0x11,0x11,0x12,0x22,0x40,
  64. // '*'
  65. 0x2A,0x02,0x09,0x06,0x00,0x08,
  66. 0x08,0x24,0x8F,0x83,0x81,0x41,0x10,
  67. // '+'
  68. 0x2B,0x05,0x07,0x07,0x01,0x09,
  69. 0x10,0x20,0x47,0xF1,0x02,0x04,0x00,
  70. // ','
  71. 0x2C,0x0B,0x02,0x05,0x00,0x04,
  72. 0x54,0x80,
  73. // '-'
  74. 0x2D,0x08,0x04,0x01,0x01,0x06,
  75. 0xF0,
  76. // '.'
  77. 0x2E,0x0B,0x01,0x02,0x01,0x04,
  78. 0xC0,
  79. // '/'
  80. 0x2F,0x00,0x07,0x10,0x00,0x06,
  81. 0x02,0x08,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x08,0x10,0x40,
  82. // '0'
  83. 0x30,0x02,0x07,0x0B,0x01,0x09,
  84. 0x38,0x8B,0x1C,0x18,0x30,0x60,0xC1,0x86,0x88,0xE0,
  85. // '1'
  86. 0x31,0x02,0x04,0x0B,0x01,0x09,
  87. 0x13,0x59,0x11,0x11,0x11,0x10,
  88. // '2'
  89. 0x32,0x02,0x06,0x0B,0x01,0x09,
  90. 0x7A,0x30,0x41,0x08,0x21,0x08,0x42,0x0F,0xC0,
  91. // '3'
  92. 0x33,0x02,0x07,0x0B,0x01,0x09,
  93. 0x78,0x08,0x08,0x10,0x47,0x01,0x01,0x02,0x0B,0xE0,
  94. // '4'
  95. 0x34,0x02,0x07,0x0B,0x01,0x09,
  96. 0x04,0x18,0x51,0x22,0x48,0xA1,0x7F,0x04,0x08,0x10,
  97. // '5'
  98. 0x35,0x02,0x07,0x0B,0x01,0x09,
  99. 0x7E,0x81,0x02,0x07,0x81,0x80,0x81,0x02,0x0B,0xE0,
  100. // '6'
  101. 0x36,0x02,0x07,0x0B,0x01,0x09,
  102. 0x1C,0x61,0x00,0x0F,0x90,0xA0,0xC1,0x82,0x88,0xE0,
  103. // '7'
  104. 0x37,0x02,0x07,0x0B,0x01,0x09,
  105. 0xFE,0x04,0x10,0x40,0x82,0x04,0x08,0x20,0x40,0x80,
  106. // '8'
  107. 0x38,0x02,0x07,0x0B,0x01,0x09,
  108. 0x39,0x8A,0x0C,0x14,0x47,0x11,0x41,0x83,0x89,0xE0,
  109. // '9'
  110. 0x39,0x02,0x07,0x0B,0x01,0x09,
  111. 0x38,0x8A,0x0C,0x18,0x28,0x4F,0x81,0x04,0x11,0xC0,
  112. // ':'
  113. 0x3A,0x05,0x01,0x08,0x01,0x04,
  114. 0xC3,
  115. // ';'
  116. 0x3B,0x05,0x02,0x0B,0x00,0x04,
  117. 0x50,0x05,0x48,
  118. // '<'
  119. 0x3C,0x05,0x08,0x07,0x01,0x09,
  120. 0x02,0x0C,0x30,0x60,0x30,0x0C,0x02,
  121. // '='
  122. 0x3D,0x06,0x07,0x04,0x01,0x09,
  123. 0xFE,0x00,0x07,0xF0,
  124. // '>'
  125. 0x3E,0x05,0x09,0x07,0x00,0x09,
  126. 0x40,0x1C,0x01,0x80,0x70,0x61,0xC1,0x00,
  127. // '?'
  128. 0x3F,0x02,0x06,0x0B,0x01,0x07,
  129. 0x78,0x30,0x41,0x18,0xC2,0x00,0x00,0x82,0x00,
  130. // '@'
  131. 0x40,0x02,0x0D,0x0D,0x01,0x0F,
  132. 0x0F,0x81,0x83,0x10,0x0C,0x8F,0xA8,0x84,0xC8,0x26,0x41,0x32,0x09,0x88,0x5A,0x3F,0x90,0x00,0x60,0x00,0xFC,0x00,
  133. // 'A'
  134. 0x41,0x02,0x0B,0x0B,0x00,0x0B,
  135. 0x04,0x01,0xC0,0x28,0x08,0x81,0x10,0x61,0x08,0x21,0xFC,0x60,0x48,0x0B,0x00,0x80,
  136. // 'B'
  137. 0x42,0x02,0x08,0x0B,0x01,0x0A,
  138. 0xF8,0x86,0x82,0x82,0x86,0xFC,0x82,0x81,0x81,0x82,0xFC,
  139. // 'C'
  140. 0x43,0x02,0x09,0x0B,0x01,0x0B,
  141. 0x1F,0x10,0x10,0x10,0x08,0x04,0x02,0x01,0x00,0x40,0x30,0x07,0xC0,
  142. // 'D'
  143. 0x44,0x02,0x09,0x0B,0x01,0x0B,
  144. 0xFC,0x41,0x20,0x50,0x18,0x0C,0x06,0x03,0x01,0x81,0x41,0x3F,0x00,
  145. // 'E'
  146. 0x45,0x02,0x07,0x0B,0x01,0x09,
  147. 0xFF,0x02,0x04,0x08,0x1F,0xA0,0x40,0x81,0x03,0xF8,
  148. // 'F'
  149. 0x46,0x02,0x07,0x0B,0x01,0x09,
  150. 0xFF,0x02,0x04,0x08,0x1F,0xA0,0x40,0x81,0x02,0x00,
  151. // 'G'
  152. 0x47,0x02,0x09,0x0B,0x01,0x0B,
  153. 0x1F,0x10,0x10,0x10,0x08,0x04,0x02,0x03,0x01,0x40,0xB0,0x47,0xE0,
  154. // 'H'
  155. 0x48,0x02,0x09,0x0B,0x01,0x0B,
  156. 0x80,0xC0,0x60,0x30,0x18,0x0F,0xFE,0x03,0x01,0x80,0xC0,0x60,0x20,
  157. // 'I'
  158. 0x49,0x02,0x01,0x0B,0x01,0x03,
  159. 0xFF,0xE0,
  160. // 'J'
  161. 0x4A,0x02,0x07,0x0B,0x00,0x08,
  162. 0x02,0x04,0x08,0x10,0x20,0x40,0x81,0x02,0x09,0xE0,
  163. // 'K'
  164. 0x4B,0x02,0x09,0x0B,0x01,0x0A,
  165. 0x81,0x41,0x23,0x12,0x0A,0x06,0x02,0xC1,0x10,0x86,0x40,0xA0,0x20,
  166. // 'L'
  167. 0x4C,0x02,0x07,0x0B,0x01,0x08,
  168. 0x81,0x02,0x04,0x08,0x10,0x20,0x40,0x81,0x03,0xF8,
  169. // 'M'
  170. 0x4D,0x02,0x0B,0x0B,0x01,0x0D,
  171. 0x40,0x4C,0x19,0x01,0x28,0xA5,0x14,0x94,0xB2,0x9C,0x33,0x84,0x30,0x06,0x00,0x80,
  172. // 'N'
  173. 0x4E,0x02,0x09,0x0B,0x01,0x0B,
  174. 0x80,0xE0,0x68,0x32,0x19,0x0C,0x46,0x13,0x05,0x82,0xC0,0xE0,0x20,
  175. // 'O'
  176. 0x4F,0x02,0x0B,0x0B,0x01,0x0D,
  177. 0x1F,0x04,0x11,0x01,0x40,0x18,0x03,0x00,0x60,0x0C,0x01,0x40,0x44,0x10,0x7C,0x00,
  178. // 'P'
  179. 0x50,0x02,0x08,0x0B,0x01,0x0A,
  180. 0xFC,0x82,0x81,0x81,0x81,0x82,0xFC,0x80,0x80,0x80,0x80,
  181. // 'Q'
  182. 0x51,0x02,0x0B,0x0E,0x01,0x0D,
  183. 0x1F,0x04,0x11,0x01,0x40,0x18,0x03,0x00,0x60,0x0C,0x01,0x40,0x44,0x10,0x78,0x02,0x00,0x30,0x01,0x80,
  184. // 'R'
  185. 0x52,0x02,0x09,0x0B,0x01,0x0A,
  186. 0xFC,0x41,0x20,0x50,0x28,0x14,0x13,0xF1,0x08,0x82,0x40,0xA0,0x20,
  187. // 'S'
  188. 0x53,0x02,0x08,0x0B,0x01,0x09,
  189. 0x3C,0xC2,0x80,0x80,0x40,0x1C,0x06,0x02,0x02,0x06,0x78,
  190. // 'T'
  191. 0x54,0x02,0x09,0x0B,0x00,0x09,
  192. 0xFF,0x84,0x02,0x01,0x00,0x80,0x40,0x20,0x10,0x08,0x04,0x02,0x00,
  193. // 'U'
  194. 0x55,0x02,0x09,0x0B,0x01,0x0B,
  195. 0x80,0xC0,0x60,0x30,0x18,0x0C,0x06,0x03,0x01,0x80,0xA0,0x8F,0x80,
  196. // 'V'
  197. 0x56,0x02,0x09,0x0B,0x00,0x09,
  198. 0x80,0xE0,0xD0,0x48,0x26,0x21,0x10,0x88,0x28,0x14,0x0E,0x02,0x00,
  199. // 'W'
  200. 0x57,0x02,0x0D,0x0B,0x00,0x0D,
  201. 0x80,0x0E,0x10,0xD0,0x84,0x8E,0x24,0x51,0x22,0x88,0xA2,0x85,0x14,0x38,0xE0,0xC2,0x04,0x10,
  202. // 'X'
  203. 0x58,0x02,0x09,0x0B,0x00,0x09,
  204. 0xC1,0xA0,0x88,0x86,0xC1,0x40,0x60,0x70,0x6C,0x22,0x20,0xB0,0x60,
  205. // 'Y'
  206. 0x59,0x02,0x09,0x0B,0x00,0x09,
  207. 0x80,0xA0,0x90,0x44,0x41,0x40,0xA0,0x20,0x10,0x08,0x04,0x02,0x00,
  208. // 'Z'
  209. 0x5A,0x02,0x07,0x0B,0x01,0x09,
  210. 0xFE,0x04,0x10,0x41,0x02,0x08,0x00,0x41,0x03,0xF8,
  211. // '['
  212. 0x5B,0x00,0x03,0x10,0x02,0x05,
  213. 0xF2,0x49,0x24,0x92,0x49,0x27,
  214. // '\'
  215. 0x5C,0x00,0x07,0x10,0x00,0x06,
  216. 0x80,0x81,0x02,0x02,0x04,0x08,0x08,0x10,0x10,0x20,0x40,0x40,0x81,0x01,
  217. // ']'
  218. 0x5D,0x00,0x03,0x10,0x00,0x05,
  219. 0xE4,0x92,0x49,0x24,0x92,0x4F,
  220. // '^'
  221. 0x5E,0x02,0x07,0x06,0x01,0x09,
  222. 0x10,0x70,0xA2,0x24,0x50,0x40,
  223. // '_'
  224. 0x5F,0x0F,0x08,0x01,0x00,0x08,
  225. 0xFF,
  226. // '`'
  227. 0x60,0x01,0x04,0x03,0x01,0x06,
  228. 0x86,0x10,
  229. // 'a'
  230. 0x61,0x05,0x06,0x08,0x01,0x08,
  231. 0x78,0x30,0x5F,0xC6,0x18,0x5F,
  232. // 'b'
  233. 0x62,0x01,0x07,0x0C,0x01,0x09,
  234. 0x81,0x02,0x04,0x0F,0x90,0xA0,0xC1,0x83,0x06,0x17,0xC0,
  235. // 'c'
  236. 0x63,0x05,0x06,0x08,0x01,0x08,
  237. 0x3D,0x08,0x20,0x82,0x04,0x0F,
  238. // 'd'
  239. 0x64,0x01,0x07,0x0C,0x01,0x09,
  240. 0x02,0x04,0x08,0x13,0xE8,0x60,0xC1,0x83,0x05,0x09,0xF0,
  241. // 'e'
  242. 0x65,0x05,0x07,0x08,0x01,0x09,
  243. 0x3C,0x8A,0x0F,0xF8,0x10,0x10,0x1E,
  244. // 'f'
  245. 0x66,0x01,0x05,0x0C,0x01,0x06,
  246. 0x7E,0x21,0x0F,0xC2,0x10,0x84,0x21,0x00,
  247. // 'g'
  248. 0x67,0x05,0x07,0x0B,0x01,0x09,
  249. 0x3E,0x86,0x0C,0x18,0x30,0x50,0x9F,0x02,0x0B,0xE0,
  250. // 'h'
  251. 0x68,0x01,0x07,0x0C,0x01,0x09,
  252. 0x81,0x02,0x04,0x0F,0x90,0xE0,0xC1,0x83,0x06,0x0C,0x10,
  253. // 'i'
  254. 0x69,0x01,0x03,0x0C,0x00,0x03,
  255. 0x48,0x04,0x92,0x49,0x20,
  256. // 'j'
  257. 0x6A,0x01,0x04,0x0F,0xFF,0x03,
  258. 0x22,0x00,0x22,0x22,0x22,0x22,0x22,0xC0,
  259. // 'k'
  260. 0x6B,0x01,0x06,0x0C,0x01,0x08,
  261. 0x82,0x08,0x20,0x8A,0x4A,0x30,0xA2,0x48,0xA1,
  262. // 'l'
  263. 0x6C,0x01,0x04,0x0C,0x01,0x04,
  264. 0x88,0x88,0x88,0x88,0x88,0x86,
  265. // 'm'
  266. 0x6D,0x05,0x0B,0x08,0x01,0x0D,
  267. 0xFB,0xD1,0x8E,0x10,0xC2,0x18,0x43,0x08,0x61,0x0C,0x21,
  268. // 'n'
  269. 0x6E,0x05,0x07,0x08,0x01,0x09,
  270. 0xFD,0x0E,0x0C,0x18,0x30,0x60,0xC1,
  271. // 'o'
  272. 0x6F,0x05,0x08,0x08,0x01,0x0A,
  273. 0x3C,0x42,0x81,0x81,0x81,0x81,0x42,0x3C,
  274. // 'p'
  275. 0x70,0x05,0x07,0x0B,0x01,0x09,
  276. 0xF9,0x0A,0x0C,0x18,0x30,0x61,0x7C,0x81,0x02,0x00,
  277. // 'q'
  278. 0x71,0x05,0x07,0x0B,0x01,0x09,
  279. 0x3E,0x86,0x0C,0x18,0x30,0x50,0x9F,0x02,0x04,0x08,
  280. // 'r'
  281. 0x72,0x05,0x05,0x08,0x01,0x06,
  282. 0xFC,0x21,0x08,0x42,0x10,
  283. // 's'
  284. 0x73,0x05,0x05,0x08,0x01,0x07,
  285. 0x7C,0x20,0xC3,0x04,0x3E,
  286. // 't'
  287. 0x74,0x02,0x05,0x0B,0x01,0x07,
  288. 0x84,0x21,0xF8,0x42,0x10,0x84,0x1E,
  289. // 'u'
  290. 0x75,0x05,0x07,0x08,0x01,0x09,
  291. 0x83,0x06,0x0C,0x18,0x30,0x50,0xBF,
  292. // 'v'
  293. 0x76,0x05,0x07,0x08,0x00,0x07,
  294. 0x83,0x05,0x12,0x22,0x85,0x0E,0x08,
  295. // 'w'
  296. 0x77,0x05,0x0D,0x08,0x00,0x0D,
  297. 0x82,0x0C,0x10,0x51,0xC4,0x8A,0x26,0x5B,0x14,0x50,0xE3,0x82,0x08,
  298. // 'x'
  299. 0x78,0x05,0x08,0x08,0x00,0x08,
  300. 0xC3,0x66,0x24,0x18,0x18,0x24,0x42,0xC3,
  301. // 'y'
  302. 0x79,0x05,0x07,0x0B,0x00,0x07,
  303. 0x82,0x89,0x12,0x22,0x85,0x04,0x08,0x10,0x43,0x00,
  304. // 'z'
  305. 0x7A,0x05,0x06,0x08,0x01,0x08,
  306. 0xFC,0x10,0x84,0x21,0x08,0x3F,
  307. // '{'
  308. 0x7B,0x00,0x05,0x10,0x00,0x05,
  309. 0x19,0x08,0x42,0x10,0x98,0x61,0x08,0x42,0x10,0x83,
  310. // '|'
  311. 0x7C,0x00,0x01,0x10,0x02,0x05,
  312. 0xFF,0xFF,
  313. // '}'
  314. 0x7D,0x00,0x05,0x10,0x00,0x05,
  315. 0xC1,0x08,0x42,0x10,0x83,0x31,0x08,0x42,0x10,0x98,
  316. // '~'
  317. 0x7E,0x07,0x07,0x02,0x01,0x09,
  318. 0x73,0x18,
  319. // Terminator
  320. 0xFF
  321. };