font12CN.cpp 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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. const CH_CN Font12CN_Table[] PROGMEM =
  43. {
  44. /*-- 文字: 你 --*/
  45. /*-- 微软雅黑12; 此字体下对应的点阵为:宽x高=16x21 --*/
  46. {"你",
  47. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1D,0xC0,0x1D,0x80,0x3B,0xFF,0x3B,0x07,
  48. 0x3F,0x77,0x7E,0x76,0xF8,0x70,0xFB,0xFE,0xFB,0xFE,0x3F,0x77,0x3F,0x77,0x3E,0x73,
  49. 0x38,0x70,0x38,0x70,0x3B,0xE0,0x00,0x00,0x00,0x00},
  50. /*-- 文字: 好 --*/
  51. /*-- 微软雅黑12; 此字体下对应的点阵为:宽x高=16x21 --*/
  52. {"好",
  53. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x00,0x73,0xFF,0x70,0x0F,0xFE,0x1E,
  54. 0x7E,0x3C,0x6E,0x38,0xEE,0x30,0xEF,0xFF,0xFC,0x30,0x7C,0x30,0x38,0x30,0x3E,0x30,
  55. 0x7E,0x30,0xE0,0x30,0xC1,0xF0,0x00,0x00,0x00,0x00},
  56. /*-- 文字: 树 --*/
  57. /*-- 微软雅黑12; 此字体下对应的点阵为:宽x高=16x21 --*/
  58. {"树",
  59. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x0E,0x30,0x0E,0x3F,0xEE,0x30,0xEE,
  60. 0xFC,0xFF,0x76,0xCE,0x77,0xFE,0x7B,0xFE,0xFF,0xFE,0xF3,0xDE,0xF3,0xCE,0x37,0xEE,
  61. 0x3E,0x6E,0x3C,0x0E,0x30,0x3E,0x00,0x00,0x00,0x00},
  62. /*-- 文字: 莓 --*/
  63. /*-- 微软雅黑12; 此字体下对应的点阵为:宽x高=16x21 --*/
  64. {"莓",
  65. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x70,0xFF,0xFF,0x3E,0x70,0x38,0x00,
  66. 0x7F,0xFF,0xE0,0x00,0xFF,0xFC,0x3B,0x8C,0x39,0xCC,0xFF,0xFF,0x73,0x9C,0x71,0xDC,
  67. 0x7F,0xFF,0x00,0x1C,0x01,0xF8,0x00,0x00,0x00,0x00},
  68. /*-- 文字: 派 --*/
  69. /*-- 微软雅黑12; 此字体下对应的点阵为:宽x高=16x21 --*/
  70. {"派",
  71. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0x1F,0xFF,0xF0,0x3E,0x00,0x0E,0x1F,
  72. 0xCF,0xFB,0xFF,0xF8,0x3F,0xFF,0x0F,0xFF,0x7F,0xD8,0x7F,0xDC,0x6F,0xCE,0xED,0xFF,
  73. 0xFD,0xF7,0xF9,0xC0,0x00,0x00,0x00,0x00,0x00,0x00},
  74. /*-- 文字: a --*/
  75. /*-- 微软雅黑12; 此字体下对应的点阵为:宽x高=16x21 --*/
  76. {"a",
  77. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  78. 0x3E,0x00,0x67,0x00,0x07,0x80,0x0F,0x80,0x7F,0x80,0xE3,0x80,0xE7,0x80,0xE7,0x80,
  79. 0x7F,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
  80. /*-- 文字: b --*/
  81. /*-- 微软雅黑12; 此字体下对应的点阵为:宽x高=16x21 --*/
  82. {"b",
  83. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x70,0x00,0x70,0x00,0x70,0x00,0x70,0x00,
  84. 0x7F,0x00,0x7B,0x80,0x71,0xC0,0x71,0xC0,0x71,0xC0,0x71,0xC0,0x71,0xC0,0x7B,0x80,
  85. 0x7F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
  86. /*-- 文字: c --*/
  87. /*-- 微软雅黑12; 此字体下对应的点阵为:宽x高=16x21 --*/
  88. {"c",
  89. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  90. 0x3F,0x00,0x73,0x00,0xF0,0x00,0xE0,0x00,0xE0,0x00,0xE0,0x00,0xF0,0x00,0x73,0x00,
  91. 0x3F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
  92. /*-- 文字: A --*/
  93. /*-- 微软雅黑12; 此字体下对应的点阵为:宽x高=16x21 --*/
  94. {"A",
  95. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0E,0x00,0x1F,0x00,0x1F,0x00,
  96. 0x1F,0x00,0x3B,0x80,0x3B,0x80,0x71,0x80,0x7F,0xC0,0x71,0xC0,0xE0,0xE0,0xE0,0xE0,
  97. 0xE0,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
  98. };
  99. cFONT Font12CN = {
  100. Font12CN_Table,
  101. sizeof(Font12CN_Table)/sizeof(CH_CN), /*size of table*/
  102. 11, /* ASCII Width */
  103. 16, /* Width */
  104. 21, /* Height */
  105. };
  106. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/