14 if(FontData) memset(FontData, 0,
sizeof(
tFontData));
16 if(!FontFileName || !FontFileName[0] || !FontData)
27 if(!TAP_Hdd_Exist(FileName))
30 extern char __tap_program_name__[MAX_PROGRAM_NAME];
32 TAP_SPrint(s,
"failed to load %s", FileName);
34 ShowMessageWin(__tap_program_name__, s,
"Please install the font", 300);
42 f = TAP_Hdd_Fopen(FileName);
69 FontData->
pFontData = TAP_MemAlloc(GreyScaleSize);
76 if(k > 32768) k = 32768;
77 TAP_Hdd_Fread(&FontData->
pFontData[i], k, 1, f);
void ConvertPathType(const char *Source, char *Dest, tPathFormat DestFormat)
bool FM_LoadFontFile(char *FontFileName, tFontData *FontData)
bool HDD_ChangeDir(const char *Dir)
void LogEntryFBLibPrintf(bool Console, char *format,...)
void ShowMessageWin(char *title, char *lpMessage1, char *lpMessage2, dword dwDelay)
bool HDD_TAP_PushDir(void)
bool HDD_TAP_PopDir(void)