font12CN.cpp 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. /**
  2. ******************************************************************************
  3. * @file Font12.c
  4. * @author MCD Application Team
  5. * @version V1.0.0
  6. * @date 18-February-2014
  7. * @brief This file provides text Font12 for STM32xx-EVAL's LCD driver.
  8. ******************************************************************************
  9. * @attention
  10. *
  11. * <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
  12. *
  13. * Redistribution and use in source and binary forms, with or without modification,
  14. * are permitted provided that the following conditions are met:
  15. * 1. Redistributions of source code must retain the above copyright notice,
  16. * this list of conditions and the following disclaimer.
  17. * 2. Redistributions in binary form must reproduce the above copyright notice,
  18. * this list of conditions and the following disclaimer in the documentation
  19. * and/or other materials provided with the distribution.
  20. * 3. Neither the name of STMicroelectronics nor the names of its contributors
  21. * may be used to endorse or promote products derived from this software
  22. * without specific prior written permission.
  23. *
  24. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  25. * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  26. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  27. * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  28. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  29. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  30. * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  31. * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  32. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  33. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  34. *
  35. ******************************************************************************
  36. */
  37. /* Includes ------------------------------------------------------------------*/
  38. #include "fonts.h"
  39. //
  40. // Font data for Courier New 12pt
  41. //
  42. #ifdef __cplusplus
  43. extern "C" {
  44. #endif
  45. const CH_CN Font12CN_Table[] =
  46. {
  47. /*-- 文字: 你 --*/
  48. /*-- 微软雅黑12; 此字体下对应的点阵为:宽x高=16x21 --*/
  49. {"你",
  50. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1D,0xC0,0x1D,0x80,0x3B,0xFF,0x3B,0x07,
  51. 0x3F,0x77,0x7E,0x76,0xF8,0x70,0xFB,0xFE,0xFB,0xFE,0x3F,0x77,0x3F,0x77,0x3E,0x73,
  52. 0x38,0x70,0x38,0x70,0x3B,0xE0,0x00,0x00,0x00,0x00},
  53. /*-- 文字: 好 --*/
  54. /*-- 微软雅黑12; 此字体下对应的点阵为:宽x高=16x21 --*/
  55. {"好",
  56. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x00,0x73,0xFF,0x70,0x0F,0xFE,0x1E,
  57. 0x7E,0x3C,0x6E,0x38,0xEE,0x30,0xEF,0xFF,0xFC,0x30,0x7C,0x30,0x38,0x30,0x3E,0x30,
  58. 0x7E,0x30,0xE0,0x30,0xC1,0xF0,0x00,0x00,0x00,0x00},
  59. /*-- 文字: 树 --*/
  60. /*-- 微软雅黑12; 此字体下对应的点阵为:宽x高=16x21 --*/
  61. {"树",
  62. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x0E,0x30,0x0E,0x3F,0xEE,0x30,0xEE,
  63. 0xFC,0xFF,0x76,0xCE,0x77,0xFE,0x7B,0xFE,0xFF,0xFE,0xF3,0xDE,0xF3,0xCE,0x37,0xEE,
  64. 0x3E,0x6E,0x3C,0x0E,0x30,0x3E,0x00,0x00,0x00,0x00},
  65. /*-- 文字: 莓 --*/
  66. /*-- 微软雅黑12; 此字体下对应的点阵为:宽x高=16x21 --*/
  67. {"莓",
  68. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x70,0xFF,0xFF,0x3E,0x70,0x38,0x00,
  69. 0x7F,0xFF,0xE0,0x00,0xFF,0xFC,0x3B,0x8C,0x39,0xCC,0xFF,0xFF,0x73,0x9C,0x71,0xDC,
  70. 0x7F,0xFF,0x00,0x1C,0x01,0xF8,0x00,0x00,0x00,0x00},
  71. /*-- 文字: 派 --*/
  72. /*-- 微软雅黑12; 此字体下对应的点阵为:宽x高=16x21 --*/
  73. {"派",
  74. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0x1F,0xFF,0xF0,0x3E,0x00,0x0E,0x1F,
  75. 0xCF,0xFB,0xFF,0xF8,0x3F,0xFF,0x0F,0xFF,0x7F,0xD8,0x7F,0xDC,0x6F,0xCE,0xED,0xFF,
  76. 0xFD,0xF7,0xF9,0xC0,0x00,0x00,0x00,0x00,0x00,0x00},
  77. /*-- 文字: a --*/
  78. /*-- 微软雅黑12; 此字体下对应的点阵为:宽x高=16x21 --*/
  79. {"a",
  80. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  81. 0x3E,0x00,0x67,0x00,0x07,0x80,0x0F,0x80,0x7F,0x80,0xE3,0x80,0xE7,0x80,0xE7,0x80,
  82. 0x7F,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
  83. /*-- 文字: b --*/
  84. /*-- 微软雅黑12; 此字体下对应的点阵为:宽x高=16x21 --*/
  85. {"b",
  86. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x70,0x00,0x70,0x00,0x70,0x00,0x70,0x00,
  87. 0x7F,0x00,0x7B,0x80,0x71,0xC0,0x71,0xC0,0x71,0xC0,0x71,0xC0,0x71,0xC0,0x7B,0x80,
  88. 0x7F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
  89. /*-- 文字: c --*/
  90. /*-- 微软雅黑12; 此字体下对应的点阵为:宽x高=16x21 --*/
  91. {"c",
  92. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  93. 0x3F,0x00,0x73,0x00,0xF0,0x00,0xE0,0x00,0xE0,0x00,0xE0,0x00,0xF0,0x00,0x73,0x00,
  94. 0x3F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
  95. /*-- 文字: A --*/
  96. /*-- 微软雅黑12; 此字体下对应的点阵为:宽x高=16x21 --*/
  97. {"A",
  98. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0E,0x00,0x1F,0x00,0x1F,0x00,
  99. 0x1F,0x00,0x3B,0x80,0x3B,0x80,0x71,0x80,0x7F,0xC0,0x71,0xC0,0xE0,0xE0,0xE0,0xE0,
  100. 0xE0,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
  101. };
  102. #ifdef __cplusplus
  103. }
  104. #endif
  105. cFONT Font12CN = {
  106. Font12CN_Table,
  107. sizeof(Font12CN_Table)/sizeof(CH_CN), /*size of table*/
  108. 11, /* ASCII Width */
  109. 16, /* Width */
  110. 21, /* Height */
  111. };
  112. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/