⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mapp_loadfont.c

📁 mstar 776 开发的车载dvd
💻 C
字号:
#define MAPP_LOADFONT_C

///////////////////////////////////////////////////////////////////////////////
/// @file MApp_LoadFont.c
/// @brief AP for Load Font
/// @author MStarSemi Inc.
///
///////////////////////////////////////////////////////////////////////////////

/******************************************************************************/
/*                            Header Files                                    */
/* ****************************************************************************/
#include <stdlib.h>
#include <stdio.h>
#include "DataType.h"
#include "msAPI_MIU.h"
#include "msAPI_Font.h"

#include "MApp_GlobalSettingSt.h"
#include "MApp_Font.h"

/******************************************************************************/
/*                       Font Binary definition                             */
/******************************************************************************/
/*----------------------------------------------------------------------------*/
/* Font ID Range: 0x0100 ~ 0x01FF                                           */
/*                                                                            */
/* Unique ID for each binary used to identify the binary entity in the packed */
/* binary. If changed, need to sync them to Bin_ID.h and PackList_X.txt       */
/*----------------------------------------------------------------------------*/
#define FONT_MS_21_I2               0x0100
#define FONT_MS_21_EXT_I2           0x0101
#define FONT_MS_18_I2               0x0102
#define FONT_MS_18_EXT_I2           0x0103
#define FONT_LARGE                  0x0104
#define FONT_BIG5                   0x0105

/******************************************************************************/

void MApp_LoadFont_OSD(void)
{
    //printf(">>>msAPI_MIU_LoadFlashFontToSDRAM+++ \n");
    Font[0].fHandle = msAPI_MIU_LoadFlashFontToSDRAM(FONT_MS_21_I2);
    //printf(">>>msAPI_MIU_LoadFlashFontToSDRAM--- \n");

    //Font[1].fHandle = msAPI_MIU_LoadFlashFontToSDRAM(FONT_MS_21_EXT_I2);
    //Font[2].fHandle = msAPI_MIU_LoadFlashFontToSDRAM(FONT_MS_18_I2);
    //Font[3].fHandle = msAPI_MIU_LoadFlashFontToSDRAM(FONT_MS_18_EXT_I2);
    //Font[4].fHandle = msAPI_MIU_LoadFlashFontToSDRAM(FONT_LARGE);
    #if COUNTRY_TAIWAN
    //NO BIG5 FONT NOW
    Font[5].fHandle = msAPI_MIU_LoadFlashFontToSDRAM(FONT_BIG5);
    #endif
}

#undef MAPP_LOADFONT_C


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -