/********************************************************************* * * MainTask */ void MainTask(void) { char acPath[_MAX_PATH]; char acCpyPath[_MAX_PATH]; GUI_Init(); // // Set colors and text mode // GUI_SetBkColor (GUI_WHITE); GUI_SetColor (GUI_BLACK); GUI_SetTextMode(GUI_TM_TRANS); // // Get base path to font data // if (_GetPathToFontData(acPath) == 0) { // // Show features // while (1) { // // Get the local .\FontData\Standard directory of fonts // strcpy(acCpyPath, acPath); strcat(acCpyPath, "\\FontData\\Standard"); // // Page 1 - iType features // _IterateOverAllFiles(acCpyPath, "*.*", _PageOne); // // Page 2 - Linked font // // Get the local .\FontData\Linked directory of fonts // strcpy(acCpyPath, acPath); strcat(acCpyPath, "\\FontData\\Linked"); _IterateOverAllFiles(acCpyPath, "*.ltt", _PageTwo); // // Page 3 - Edge Font // // Get the local \FontData\Edge directory of fonts // strcpy(acCpyPath, acPath); strcat(acCpyPath, "\\FontData\\Edge"); _IterateOverAllFiles(acCpyPath, "*.ttc", _PageThree); // // Page 4 - Dynamic CSM adjustment // // Get the local \FontData\Edge directory of fonts // strcpy(acCpyPath, acPath); strcat(acCpyPath, "\\FontData\\Edge"); _IterateOverAllFiles(acCpyPath, "*.ccc", _PageFour); } GUI_ITYPE_Done(); } }
/********************************************************************* * * MainTask */ void MainTask(void) { char acPath[200]; GUI_Init(); /* Set colors and text mode */ GUI_SetBkColor(GUI_WHITE); GUI_SetColor(GUI_BLACK); GUI_SetTextMode(GUI_TM_TRANS); /* Get windows system directory and extend it with '\Font' */ GetWindowsDirectory(acPath, sizeof(acPath)); strcat(acPath, "\\Fonts"); /* Iterate over files and call _cbFontDemo for each file */ while (1) { _IterateOverAllFiles(acPath, "*.ttf", _cbFontDemo); } }