2019-08-05 23:25:51 +08:00
|
|
|
/**
|
|
|
|
******************************************************************************
|
|
|
|
* @file fonts.h
|
|
|
|
* @author MCD Application Team
|
2023-04-28 00:14:50 +08:00
|
|
|
* @brief This file provides definition for fonts to be used for STM32
|
|
|
|
* board's LCD driver
|
2019-08-05 23:25:51 +08:00
|
|
|
******************************************************************************
|
|
|
|
* @attention
|
|
|
|
*
|
2023-04-28 00:14:50 +08:00
|
|
|
* Copyright (c) 2014 STMicroelectronics.
|
|
|
|
* All rights reserved.
|
2019-08-05 23:25:51 +08:00
|
|
|
*
|
2023-04-28 00:14:50 +08:00
|
|
|
* This software is licensed under terms that can be found in the LICENSE file
|
|
|
|
* in the root directory of this software component.
|
|
|
|
* If no LICENSE file comes with this software, it is provided AS-IS.
|
2019-08-05 23:25:51 +08:00
|
|
|
*
|
|
|
|
******************************************************************************
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Define to prevent recursive inclusion -------------------------------------*/
|
|
|
|
#ifndef __FONTS_H
|
|
|
|
#define __FONTS_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Includes ------------------------------------------------------------------*/
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
/** @addtogroup Utilities
|
|
|
|
* @{
|
|
|
|
*/
|
2023-04-28 00:14:50 +08:00
|
|
|
|
2019-08-05 23:25:51 +08:00
|
|
|
/** @addtogroup STM32_EVAL
|
|
|
|
* @{
|
2023-04-28 00:14:50 +08:00
|
|
|
*/
|
2019-08-05 23:25:51 +08:00
|
|
|
|
|
|
|
/** @addtogroup Common
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** @addtogroup FONTS
|
|
|
|
* @{
|
2023-04-28 00:14:50 +08:00
|
|
|
*/
|
2019-08-05 23:25:51 +08:00
|
|
|
|
|
|
|
/** @defgroup FONTS_Exported_Types
|
|
|
|
* @{
|
2023-04-28 00:14:50 +08:00
|
|
|
*/
|
2019-08-05 23:25:51 +08:00
|
|
|
typedef struct _tFont
|
2023-04-28 00:14:50 +08:00
|
|
|
{
|
2019-08-05 23:25:51 +08:00
|
|
|
const uint8_t *table;
|
|
|
|
uint16_t Width;
|
|
|
|
uint16_t Height;
|
|
|
|
} sFONT;
|
|
|
|
|
|
|
|
extern sFONT Font24;
|
|
|
|
extern sFONT Font20;
|
|
|
|
extern sFONT Font16;
|
|
|
|
extern sFONT Font12;
|
|
|
|
extern sFONT Font8;
|
|
|
|
/**
|
|
|
|
* @}
|
2023-04-28 00:14:50 +08:00
|
|
|
*/
|
2019-08-05 23:25:51 +08:00
|
|
|
|
|
|
|
/** @defgroup FONTS_Exported_Constants
|
|
|
|
* @{
|
2023-04-28 00:14:50 +08:00
|
|
|
*/
|
2019-08-05 23:25:51 +08:00
|
|
|
#define LINE(x) ((x) * (((sFONT *)BSP_LCD_GetFont())->Height))
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @}
|
2023-04-28 00:14:50 +08:00
|
|
|
*/
|
2019-08-05 23:25:51 +08:00
|
|
|
|
|
|
|
/** @defgroup FONTS_Exported_Macros
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** @defgroup FONTS_Exported_Functions
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2023-04-28 00:14:50 +08:00
|
|
|
|
2019-08-05 23:25:51 +08:00
|
|
|
#endif /* __FONTS_H */
|
2023-04-28 00:14:50 +08:00
|
|
|
|
2019-08-05 23:25:51 +08:00
|
|
|
/**
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @}
|
2023-04-28 00:14:50 +08:00
|
|
|
*/
|
2019-08-05 23:25:51 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|