fontfixed6x8.c 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. //*****************************************************************************
  2. //
  3. // fontfixed6x8.c - Font defintion for the fixed-point 6x8 font.
  4. //
  5. // Copyright (c) 2008-2010 Texas Instruments Incorporated. All rights reserved.
  6. // Software License Agreement
  7. //
  8. // Texas Instruments (TI) is supplying this software for use solely and
  9. // exclusively on TI's microcontroller products. The software is owned by
  10. // TI and/or its suppliers, and is protected under applicable copyright
  11. // laws. You may not combine this software with "viral" open-source
  12. // software in order to form a larger program.
  13. //
  14. // THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS.
  15. // NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT
  16. // NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  17. // A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT, UNDER ANY
  18. // CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
  19. // DAMAGES, FOR ANY REASON WHATSOEVER.
  20. //
  21. // This is part of revision 6288 of the Stellaris Graphics Library.
  22. //
  23. //*****************************************************************************
  24. #include "grlib.h"
  25. //*****************************************************************************
  26. //
  27. // Details of this font:
  28. // Style: fixed
  29. // Size: 8 point
  30. // Bold: no
  31. // Italic: no
  32. // Memory usage: 960 bytes
  33. //
  34. //*****************************************************************************
  35. //*****************************************************************************
  36. //
  37. // The uncompressed data for the fixed-point 6x8 font.
  38. //
  39. //*****************************************************************************
  40. static const unsigned char g_pucFontFixed6x8Data[760] =
  41. {
  42. 8, 6, 0, 0, 0, 0, 0, 0, 8, 6, 32, 130,
  43. 8, 0, 2, 0, 8, 6, 81, 69, 0, 0, 0, 0,
  44. 8, 6, 81, 79, 148, 249, 69, 0, 8, 6, 33, 234,
  45. 28, 43, 194, 0, 8, 6, 195, 33, 8, 66, 97, 128,
  46. 8, 6, 98, 74, 16, 170, 70, 128, 8, 6, 96, 132,
  47. 0, 0, 0, 0, 8, 6, 16, 132, 16, 64, 129, 0,
  48. 8, 6, 64, 129, 4, 16, 132, 0, 8, 6, 0, 138,
  49. 156, 168, 128, 0, 8, 6, 0, 130, 62, 32, 128, 0,
  50. 8, 6, 0, 0, 0, 96, 132, 0, 8, 6, 0, 0,
  51. 62, 0, 0, 0, 8, 6, 0, 0, 0, 1, 134, 0,
  52. 8, 6, 0, 33, 8, 66, 0, 0, 8, 6, 114, 41,
  53. 170, 202, 39, 0, 8, 6, 33, 130, 8, 32, 135, 0,
  54. 8, 6, 114, 32, 132, 33, 15, 128, 8, 6, 248, 66,
  55. 4, 10, 39, 0, 8, 6, 16, 197, 36, 248, 65, 0,
  56. 8, 6, 250, 15, 2, 10, 39, 0, 8, 6, 49, 8,
  57. 60, 138, 39, 0, 8, 6, 248, 33, 8, 65, 4, 0,
  58. 8, 6, 114, 40, 156, 138, 39, 0, 8, 6, 114, 40,
  59. 158, 8, 70, 0, 8, 6, 1, 134, 0, 97, 128, 0,
  60. 8, 6, 1, 134, 0, 96, 132, 0, 8, 6, 16, 132,
  61. 32, 64, 129, 0, 8, 6, 0, 15, 128, 248, 0, 0,
  62. 8, 6, 64, 129, 2, 16, 132, 0, 8, 6, 114, 32,
  63. 132, 32, 2, 0, 8, 6, 114, 32, 154, 170, 167, 0,
  64. 8, 6, 114, 40, 162, 250, 40, 128, 8, 6, 242, 40,
  65. 188, 138, 47, 0, 8, 6, 114, 40, 32, 130, 39, 0,
  66. 8, 6, 226, 72, 162, 138, 78, 0, 8, 6, 250, 8,
  67. 60, 130, 15, 128, 8, 6, 250, 8, 60, 130, 8, 0,
  68. 8, 6, 114, 40, 46, 138, 39, 128, 8, 6, 138, 40,
  69. 190, 138, 40, 128, 8, 6, 112, 130, 8, 32, 135, 0,
  70. 8, 6, 56, 65, 4, 18, 70, 0, 8, 6, 138, 74,
  71. 48, 162, 72, 128, 8, 6, 130, 8, 32, 130, 15, 128,
  72. 8, 6, 139, 106, 170, 138, 40, 128, 8, 6, 138, 44,
  73. 170, 154, 40, 128, 8, 6, 114, 40, 162, 138, 39, 0,
  74. 8, 6, 242, 40, 188, 130, 8, 0, 8, 6, 114, 40,
  75. 162, 170, 70, 128, 8, 6, 242, 40, 188, 162, 72, 128,
  76. 8, 6, 122, 8, 28, 8, 47, 0, 8, 6, 248, 130,
  77. 8, 32, 130, 0, 8, 6, 138, 40, 162, 138, 39, 0,
  78. 8, 6, 138, 40, 162, 137, 66, 0, 8, 6, 138, 40,
  79. 170, 170, 165, 0, 8, 6, 138, 37, 8, 82, 40, 128,
  80. 8, 6, 138, 40, 148, 32, 130, 0, 8, 6, 248, 33,
  81. 8, 66, 15, 128, 8, 6, 113, 4, 16, 65, 7, 0,
  82. 8, 6, 2, 4, 8, 16, 32, 0, 8, 6, 112, 65,
  83. 4, 16, 71, 0, 8, 6, 33, 72, 128, 0, 0, 0,
  84. 8, 6, 0, 0, 0, 0, 15, 128, 8, 6, 64, 129,
  85. 0, 0, 0, 0, 8, 6, 0, 7, 2, 122, 39, 128,
  86. 8, 6, 130, 11, 50, 138, 47, 0, 8, 6, 0, 7,
  87. 32, 130, 39, 0, 8, 6, 8, 38, 166, 138, 39, 128,
  88. 8, 6, 0, 7, 34, 250, 7, 0, 8, 6, 49, 36,
  89. 56, 65, 4, 0, 8, 6, 1, 232, 162, 120, 39, 0,
  90. 8, 6, 130, 11, 50, 138, 40, 128, 8, 6, 32, 6,
  91. 8, 32, 135, 0, 8, 6, 16, 3, 4, 18, 70, 0,
  92. 8, 6, 130, 9, 40, 194, 137, 0, 8, 6, 96, 130,
  93. 8, 32, 135, 0, 8, 6, 0, 13, 42, 170, 40, 128,
  94. 8, 6, 0, 11, 50, 138, 40, 128, 8, 6, 0, 7,
  95. 34, 138, 39, 0, 8, 6, 0, 15, 34, 242, 8, 0,
  96. 8, 6, 0, 6, 166, 120, 32, 128, 8, 6, 0, 11,
  97. 50, 130, 8, 0, 8, 6, 0, 7, 32, 112, 47, 0,
  98. 8, 6, 65, 14, 16, 65, 35, 0, 8, 6, 0, 8,
  99. 162, 138, 102, 128, 8, 6, 0, 8, 162, 137, 66, 0,
  100. 8, 6, 0, 8, 162, 170, 165, 0, 8, 6, 0, 8,
  101. 148, 33, 72, 128, 8, 6, 0, 8, 162, 120, 39, 0,
  102. 8, 6, 0, 15, 132, 33, 15, 128, 8, 6, 16, 130,
  103. 16, 32, 129, 0, 8, 6, 32, 130, 8, 32, 130, 0,
  104. 8, 6, 64, 130, 4, 32, 132, 0, 8, 6, 66, 161,
  105. 0, 0, 0, 0,
  106. };
  107. //*****************************************************************************
  108. //
  109. // The font definition for the fixed-point 6x8 font.
  110. //
  111. //*****************************************************************************
  112. const tFont g_sFontFixed6x8 =
  113. {
  114. //
  115. // The format of the font.
  116. //
  117. FONT_FMT_UNCOMPRESSED,
  118. //
  119. // The maximum width of the font.
  120. //
  121. 6,
  122. //
  123. // The height of the font.
  124. //
  125. 8,
  126. //
  127. // The baseline of the font.
  128. //
  129. 7,
  130. //
  131. // The offset to each character in the font.
  132. //
  133. {
  134. 0, 8, 16, 24, 32, 40, 48, 56,
  135. 64, 72, 80, 88, 96, 104, 112, 120,
  136. 128, 136, 144, 152, 160, 168, 176, 184,
  137. 192, 200, 208, 216, 224, 232, 240, 248,
  138. 256, 264, 272, 280, 288, 296, 304, 312,
  139. 320, 328, 336, 344, 352, 360, 368, 376,
  140. 384, 392, 400, 408, 416, 424, 432, 440,
  141. 448, 456, 464, 472, 480, 488, 496, 504,
  142. 512, 520, 528, 536, 544, 552, 560, 568,
  143. 576, 584, 592, 600, 608, 616, 624, 632,
  144. 640, 648, 656, 664, 672, 680, 688, 696,
  145. 704, 712, 720, 728, 736, 744, 752,
  146. },
  147. //
  148. // A pointer to the actual font data
  149. //
  150. g_pucFontFixed6x8Data
  151. };