/*********************************************************************
*
*       _PageFour
*/
static void _PageFour(const U8 * pData, U32 NumBytes) {
  if(_CreateFonts(pData, NumBytes)) {      // Create fonts. A return value here means fonts were not created, need to bail
    return;
  }
  _ShowDynamicCSM();                       // Show some text
  _DeleteFonts();
}
Exemplo n.º 2
0
/*********************************************************************
*
*       _cbFontDemo
*
* Purpose:
*   The function uses the given pointer to a true type font for creating
*   a couple of GUI fonts and showing the outline of the TTF font.
*
* Parameters:
*   pData    - Location of font file
*   NumBytes - Size of font file
*/
static void _cbFontDemo(const U8 * pData, U32 NumBytes) {
  _CreateFonts(pData, NumBytes); /* Create fonts */
  _ShowText();                   /* Show some text */
  GUI_TTF_DestroyCache();        /* Clear the TTF cache */
}