gui_setfont.c

来自「uCGUI」· C语言 代码 · 共 31 行

C
31
字号
/*************************************************************************************************************
                                                   uC/GUI
                                               嵌入式通用图形软件
File        : GUI_SetFont.C
Purpose     : Optional routines
*************************************************************************************************************/
#include "GUI_Protected.H"
#include "GUIDebug.h"

/*************************************************************************************************************
       Public routines
*************************************************************************************************************/


/*************************************************************************************************************
     GUI_SetFont
*************************************************************************************************************/
const GUI_FONT* GUI_SetFont(const GUI_FONT* pNewFont) 
{
  const GUI_FONT * pOldFont = GUI_Context.pAFont;
  GUI_LOCK();
  if (pNewFont)
    GUI_Context.pAFont = pNewFont;
  GUI_UNLOCK();
  return pOldFont;
}




⌨️ 快捷键说明

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