18#ifndef __VSF_TINY_GUI_V_FONT_H__
19#define __VSF_TINY_GUI_V_FONT_H__
22#include "../../vsf_tgui_cfg.h"
24#if VSF_USE_TINY_GUI == ENABLED
27#ifndef VSF_TGUI_CFG_SV_FONTS
28# define VSF_TGUI_CFG_SV_FONTS ENABLED
31#ifndef VSF_TGUI_CFG_SUPPORT_FONT_USE_FREETYPE
32# define VSF_TGUI_CFG_SUPPORT_FONT_USE_FREETYPE ENABLED
35#define __TGUI_SV_FONT_DEF(__NAME, __HEIGHT) __NAME
36#define TGUI_SV_FONT_DEF(__NAME, __HEIGHT) \
37 __TGUI_SV_FONT_DEF(__NAME, __HEIGHT)
39#define TGUI_SV_FT2_FONT_DEF(__NAME, __PATH, __SIZE) \
40 __TGUI_SV_FONT_DEF(__NAME, 0)
47#if VSF_TGUI_CFG_SUPPORT_NAME_STRING == ENABLED
51#if VSF_TGUI_CFG_SUPPORT_FONT_USE_FREETYPE == ENABLED
61#if VSF_TGUI_CFG_SV_FONTS == ENABLED
unsigned uint32_t
Definition stdint.h:9
unsigned char uint8_t
Definition stdint.h:5
Definition vsf_tgui_sv_font.h:44
uint8_t font_size
Definition vsf_tgui_sv_font.h:53
uint8_t height
Definition vsf_tgui_sv_font.h:45
const char * name_ptr
Definition vsf_tgui_sv_font.h:48
void * data_ptr
Definition vsf_tgui_sv_font.h:55
const char * font_path_ptr
Definition vsf_tgui_sv_font.h:54
uint8_t vsf_tgui_font_get_char_width(const uint8_t font_index, uint32_t char_u32)
@ VSF_TGUI_SV_FONTS
Definition vsf_tgui_sv_font.h:63
uint8_t vsf_tgui_font_number(void)
Definition vsf_tgui_sv_font.c:75
const vsf_tgui_font_t * vsf_tgui_font_get(uint8_t font_index)
Definition vsf_tgui_sv_font.c:69
uint8_t vsf_tgui_font_get_char_height(const uint8_t font_index)