Using the functions added / changing the directory structure - pages are categorized into font type and then font name

This commit is contained in:
Kushal K S V S 2018-03-22 16:30:49 +05:30
parent 7b9c8e88ba
commit 7d3fd3115d
1 changed files with 9 additions and 4 deletions

View File

@ -67,6 +67,9 @@ int main(int argc, char const *argv[])
char glyph_name[50] = ".not-def";
char* font_file_name = Get_Font_File_Name(font_file);
char* font_file_type = Get_Font_File_Type(font_file);
/*******************************************************************/
FT_Error ( *Base_Init_FreeType )( FT_Library* );
@ -328,9 +331,10 @@ int main(int argc, char const *argv[])
/* Initialising file pointer for the list-view*/
if (snprintf( output_file_name,
output_file_size,
"./html/pages/%d/%s/%s/%d/index.html",
"./html/pages/%d/%s/%s/%s/%d/index.html",
dpi,
font_file,
font_file_type,
font_file_name,
mode,
pt_size )
> output_file_size )
@ -470,9 +474,10 @@ int main(int argc, char const *argv[])
if (snprintf( output_file_name,
output_file_size,
"./html/pages/%d/%s/%s/%d/images/%s.png",
"./html/pages/%d/%s/%s/%s/%d/images/%s.png",
dpi,
font_file,
font_file_type,
font_file_name,
mode,
pt_size,
glyph_name )