Path: blob/master/bdk/libs/lvgl/lv_fonts/lv_font_builtin.c
1476 views
/*1* Copyright (c) 2019 CTCaer2*3* This program is free software; you can redistribute it and/or modify it4* under the terms and conditions of the GNU General Public License,5* version 2, as published by the Free Software Foundation.6*7* This program is distributed in the hope it will be useful, but WITHOUT8* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or9* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for10* more details.11*12* You should have received a copy of the GNU General Public License13* along with this program. If not, see <http://www.gnu.org/licenses/>.14*/1516/**17* @file lv_font_built_in.c18*19*/2021/*********************22* INCLUDES23*********************/24#include "lv_font_builtin.h"2526/*********************27* DEFINES28*********************/2930/**********************31* TYPEDEFS32**********************/3334/**********************35* STATIC PROTOTYPES36**********************/3738/**********************39* STATIC VARIABLES40**********************/4142/**********************43* MACROS44**********************/4546/**********************47* GLOBAL FUNCTIONS48**********************/4950/**51* Initialize the built-in fonts52*/53void lv_font_builtin_init(void)54{55/*InterUI 20*/56#if USE_INTERUI_20 != 057lv_font_add(&interui_20, NULL);58#endif5960/*SYMBOL 20*/61#if USE_HEKATE_SYMBOL_20 != 062#if USE_INTERUI_20 != 063lv_font_add(&hekate_symbol_20, &interui_20);64#else65lv_font_add(&hekate_symbol_20, NULL);66#endif67#endif6869/*InterUI 30*/70#if USE_INTERUI_30 != 071lv_font_add(&interui_30, NULL);72#endif7374/*SYMBOL 30*/75#if USE_HEKATE_SYMBOL_30 != 076#if USE_INTERUI_30 != 077lv_font_add(&hekate_symbol_30, &interui_30);78#else79lv_font_add(&hekate_symbol_30, NULL);80#endif81#endif8283/*MONO 12*/84#if USE_UBUNTU_MONO != 085lv_font_add(&ubuntu_mono, NULL);86#if USE_INTERUI_20 != 087lv_font_add(&hekate_symbol_20, &ubuntu_mono);88#endif89#endif9091/*Symbol 120*/92#if USE_HEKATE_SYMBOL_120 != 093lv_font_add(&hekate_symbol_120, NULL);94#endif95}9697/**********************98* STATIC FUNCTIONS99**********************/100101102