arial12font.c 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. /*
  2. * File : arial16font.c
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2006 - 2009, RT-Thread Development Team
  5. *
  6. * The license and distribution terms for this file may be
  7. * found in the file LICENSE in this distribution or at
  8. * http://www.rt-thread.org/license/LICENSE
  9. *
  10. * Change Logs:
  11. * Date Author Notes
  12. * 2010-01-21 Bernard first version
  13. */
  14. #include <rtgui/font.h>
  15. #ifdef RTGUI_USING_FONT12
  16. const unsigned char arial12_font[]=
  17. {
  18. /*---char: ---*/
  19. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  20. /*---char: ! ---*/
  21. 0x00,0x00,0x10,0x41,0x04,0x10,0x41,0x00,0x10,
  22. /*---char: " ---*/
  23. 0x00,0x00,0x28,0xa2,0x80,0x00,0x00,0x00,0x00,
  24. /*---char: # ---*/
  25. 0x00,0x00,0x05,0x17,0xf2,0x8a,0xfc,0xa5,0x14,
  26. /*---char: $ ---*/
  27. 0x00,0x00,0x0e,0x55,0x45,0x0e,0x15,0x55,0x4e,
  28. /*---char: % ---*/
  29. 0x00,0x00,0x0c,0x49,0x24,0xcd,0x04,0x20,0x84,
  30. /*---char: & ---*/
  31. 0x00,0x00,0x06,0x24,0x92,0x8c,0x49,0x14,0x4e,
  32. /*---char: ' ---*/
  33. 0x00,0x00,0x10,0x41,0x00,0x00,0x00,0x00,0x00,
  34. /*---char: ( ---*/
  35. 0x00,0x00,0x04,0x20,0x84,0x10,0x41,0x04,0x08,
  36. /*---char: ) ---*/
  37. 0x00,0x00,0x20,0x41,0x02,0x08,0x20,0x82,0x10,
  38. /*---char: * ---*/
  39. 0x00,0x00,0x08,0xf8,0x85,0x00,0x00,0x00,0x00,
  40. /*---char: + ---*/
  41. 0x00,0x00,0x00,0x00,0x41,0x1f,0x10,0x40,0x00,
  42. /*---char: , ---*/
  43. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,
  44. /*---char: - ---*/
  45. 0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x00,0x00,
  46. /*---char: . ---*/
  47. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,
  48. /*---char: / ---*/
  49. 0x00,0x00,0x08,0x21,0x04,0x10,0x41,0x08,0x20,
  50. /*---char: 0 ---*/
  51. 0x00,0x00,0x0e,0x45,0x14,0x51,0x45,0x14,0x4e,
  52. /*---char: 1 ---*/
  53. 0x00,0x00,0x04,0x31,0x41,0x04,0x10,0x41,0x04,
  54. /*---char: 2 ---*/
  55. 0x00,0x00,0x0e,0x44,0x10,0x42,0x08,0x42,0x1f,
  56. /*---char: 3 ---*/
  57. 0x00,0x00,0x0e,0x44,0x10,0x46,0x04,0x14,0x4e,
  58. /*---char: 4 ---*/
  59. 0x00,0x00,0x02,0x18,0x62,0x8a,0x49,0xf0,0x82,
  60. /*---char: 5 ---*/
  61. 0x00,0x00,0x0f,0x21,0x07,0x91,0x04,0x14,0x4e,
  62. /*---char: 6 ---*/
  63. 0x00,0x00,0x0e,0x45,0x05,0x99,0x45,0x14,0x4e,
  64. /*---char: 7 ---*/
  65. 0x00,0x00,0x1f,0x08,0x21,0x04,0x10,0x82,0x08,
  66. /*---char: 8 ---*/
  67. 0x00,0x00,0x0e,0x45,0x14,0x4e,0x45,0x14,0x4e,
  68. /*---char: 9 ---*/
  69. 0x00,0x00,0x0e,0x45,0x14,0x53,0x34,0x14,0x4e,
  70. /*---char: : ---*/
  71. 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x10,
  72. /*---char: ; ---*/
  73. 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x10,
  74. /*---char: < ---*/
  75. 0x00,0x00,0x00,0x00,0x13,0x90,0x38,0x10,0x00,
  76. /*---char: = ---*/
  77. 0x00,0x00,0x00,0x00,0x0f,0xc0,0x03,0xf0,0x00,
  78. /*---char: > ---*/
  79. 0x00,0x00,0x00,0x01,0x03,0x81,0x39,0x00,0x00,
  80. /*---char: ? ---*/
  81. 0x00,0x00,0x0e,0x45,0x10,0x42,0x10,0x40,0x04,
  82. /*---char: @ ---*/
  83. 0x00,0x00,0x01,0x18,0x82,0x52,0x51,0x45,0x13,
  84. /*---char: A ---*/
  85. 0x00,0x00,0x04,0x28,0xa2,0x91,0x7d,0x18,0x20,
  86. /*---char: B ---*/
  87. 0x00,0x00,0x1f,0x41,0x04,0x1f,0x41,0x04,0x1f,
  88. /*---char: C ---*/
  89. 0x00,0x00,0x07,0x21,0x04,0x10,0x41,0x02,0x07,
  90. /*---char: D ---*/
  91. 0x00,0x00,0x1f,0x41,0x04,0x10,0x41,0x04,0x1f,
  92. /*---char: E ---*/
  93. 0x00,0x00,0x1f,0x41,0x04,0x1f,0x41,0x04,0x1f,
  94. /*---char: F ---*/
  95. 0x00,0x00,0x1f,0x41,0x04,0x1e,0x41,0x04,0x10,
  96. /*---char: G ---*/
  97. 0x00,0x00,0x07,0x21,0x04,0x11,0x41,0x02,0x07,
  98. /*---char: H ---*/
  99. 0x00,0x00,0x10,0x41,0x04,0x1f,0x41,0x04,0x10,
  100. /*---char: I ---*/
  101. 0x00,0x00,0x10,0x41,0x04,0x10,0x41,0x04,0x10,
  102. /*---char: J ---*/
  103. 0x00,0x00,0x02,0x08,0x20,0x82,0x0a,0x28,0x9c,
  104. /*---char: K ---*/
  105. 0x00,0x00,0x10,0x41,0x14,0x94,0x69,0x14,0x10,
  106. /*---char: L ---*/
  107. 0x00,0x00,0x10,0x41,0x04,0x10,0x41,0x04,0x1f,
  108. /*---char: M ---*/
  109. 0x00,0x00,0x10,0x61,0x85,0x55,0x55,0x54,0x92,
  110. /*---char: N ---*/
  111. 0x00,0x00,0x10,0x61,0x45,0x12,0x45,0x14,0x10,
  112. /*---char: O ---*/
  113. 0x00,0x00,0x07,0x21,0x04,0x10,0x41,0x02,0x07,
  114. /*---char: P ---*/
  115. 0x00,0x00,0x1f,0x41,0x04,0x1f,0x41,0x04,0x10,
  116. /*---char: Q ---*/
  117. 0x00,0x00,0x07,0x21,0x04,0x10,0x41,0x32,0x07,
  118. /*---char: R ---*/
  119. 0x00,0x00,0x1f,0x41,0x04,0x1f,0x45,0x04,0x10,
  120. /*---char: S ---*/
  121. 0x00,0x00,0x0f,0x41,0x04,0x0f,0x01,0x04,0x0f,
  122. /*---char: T ---*/
  123. 0x00,0x00,0x3f,0x10,0x41,0x04,0x10,0x41,0x04,
  124. /*---char: U ---*/
  125. 0x00,0x00,0x10,0x41,0x04,0x10,0x41,0x02,0x07,
  126. /*---char: V ---*/
  127. 0x00,0x00,0x20,0x81,0x14,0x51,0x28,0xa1,0x04,
  128. /*---char: W ---*/
  129. 0x00,0x00,0x21,0x8a,0x24,0x94,0x51,0x42,0x08,
  130. /*---char: X ---*/
  131. 0x00,0x00,0x20,0x45,0x12,0x84,0x29,0x14,0x60,
  132. /*---char: Y ---*/
  133. 0x00,0x00,0x20,0x45,0x12,0x84,0x10,0x41,0x04,
  134. /*---char: Z ---*/
  135. 0x00,0x00,0x1f,0x04,0x20,0x84,0x20,0x84,0x3f,
  136. /*---char: [ ---*/
  137. 0x00,0x00,0x18,0x41,0x04,0x10,0x41,0x04,0x10,
  138. /*---char: \ ---*/
  139. 0x00,0x00,0x20,0x81,0x04,0x10,0x41,0x02,0x08,
  140. /*---char: ] ---*/
  141. 0x00,0x00,0x30,0x41,0x04,0x10,0x41,0x04,0x10,
  142. /*---char: ^ ---*/
  143. 0x00,0x00,0x08,0x51,0x45,0x22,0x00,0x00,0x00,
  144. /*---char: _ ---*/
  145. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  146. /*---char: ` ---*/
  147. 0x00,0x00,0x10,0x20,0x00,0x00,0x00,0x00,0x00,
  148. /*---char: a ---*/
  149. 0x00,0x00,0x00,0x00,0xe4,0x41,0x3d,0x14,0xcd,
  150. /*---char: b ---*/
  151. 0x00,0x00,0x10,0x41,0x66,0x51,0x45,0x16,0x56,
  152. /*---char: c ---*/
  153. 0x00,0x00,0x00,0x00,0xc4,0x90,0x41,0x04,0x8c,
  154. /*---char: d ---*/
  155. 0x00,0x00,0x01,0x04,0xd4,0xd1,0x45,0x14,0x4f,
  156. /*---char: e ---*/
  157. 0x00,0x00,0x00,0x00,0xe4,0x51,0x7d,0x04,0x4e,
  158. /*---char: f ---*/
  159. 0x00,0x00,0x0c,0x43,0x84,0x10,0x41,0x04,0x10,
  160. /*---char: g ---*/
  161. 0x00,0x00,0x00,0x00,0xd4,0xd1,0x45,0x14,0xcd,
  162. /*---char: h ---*/
  163. 0x00,0x00,0x10,0x41,0x66,0x51,0x45,0x14,0x51,
  164. /*---char: i ---*/
  165. 0x00,0x00,0x10,0x01,0x04,0x10,0x41,0x04,0x10,
  166. /*---char: j ---*/
  167. 0x00,0x00,0x10,0x01,0x04,0x10,0x41,0x04,0x10,
  168. /*---char: k ---*/
  169. 0x00,0x00,0x10,0x41,0x14,0x94,0x71,0x24,0x91,
  170. /*---char: l ---*/
  171. 0x00,0x00,0x10,0x41,0x04,0x10,0x41,0x04,0x10,
  172. /*---char: m ---*/
  173. 0x00,0x00,0x00,0x01,0x66,0x51,0x45,0x14,0x51,
  174. /*---char: n ---*/
  175. 0x00,0x00,0x00,0x01,0x66,0x51,0x45,0x14,0x51,
  176. /*---char: o ---*/
  177. 0x00,0x00,0x00,0x00,0xe4,0x51,0x45,0x14,0x4e,
  178. /*---char: p ---*/
  179. 0x00,0x00,0x00,0x01,0x66,0x51,0x45,0x16,0x56,
  180. /*---char: q ---*/
  181. 0x00,0x00,0x00,0x00,0xd4,0xd1,0x45,0x14,0xcd,
  182. /*---char: r ---*/
  183. 0x00,0x00,0x00,0x01,0x46,0x10,0x41,0x04,0x10,
  184. /*---char: s ---*/
  185. 0x00,0x00,0x00,0x00,0xe4,0x50,0x38,0x14,0x4e,
  186. /*---char: t ---*/
  187. 0x00,0x00,0x10,0x43,0x84,0x10,0x41,0x04,0x18,
  188. /*---char: u ---*/
  189. 0x00,0x00,0x00,0x01,0x14,0x51,0x45,0x14,0x4f,
  190. /*---char: v ---*/
  191. 0x00,0x00,0x00,0x02,0x28,0x94,0x51,0x42,0x08,
  192. /*---char: w ---*/
  193. 0x00,0x00,0x00,0x02,0x28,0x95,0x55,0x52,0x08,
  194. /*---char: x ---*/
  195. 0x00,0x00,0x00,0x02,0x25,0x14,0x21,0x45,0x22,
  196. /*---char: y ---*/
  197. 0x00,0x00,0x00,0x02,0x28,0x94,0x51,0x42,0x08,
  198. /*---char: z ---*/
  199. 0x00,0x00,0x00,0x03,0xe1,0x04,0x21,0x04,0x3e,
  200. /*---char: { ---*/
  201. 0x00,0x00,0x08,0x41,0x04,0x10,0x81,0x04,0x10,
  202. /*---char: | ---*/
  203. 0x00,0x00,0x10,0x41,0x04,0x10,0x41,0x04,0x10,
  204. /*---char: } ---*/
  205. 0x00,0x00,0x10,0x20,0x82,0x08,0x10,0x82,0x08,
  206. /*---char: ~ ---*/
  207. 0x00,0x00,0x00,0x00,0x00,0x0c,0x4c,0x00,0x00
  208. };
  209. struct rtgui_font_bitmap arial12 =
  210. {
  211. (const rt_uint8_t*)arial12_font, /* bmp */
  212. 6, /* width */
  213. 12, /* height */
  214. 32, /* first char */
  215. 127 /* last char */
  216. };
  217. struct rtgui_font rtgui_font_arial12 =
  218. {
  219. "arial", /* family */
  220. 12, /* height */
  221. 1, /* refer count */
  222. &bmp_font_engine, /* font engine */
  223. &arial12, /* font private data */
  224. };
  225. #endif