From 7d3fd3115dd125010edd7549846a8bff9ef03622 Mon Sep 17 00:00:00 2001 From: Kushal K S V S Date: Thu, 22 Mar 2018 16:30:49 +0530 Subject: [PATCH] Using the functions added / changing the directory structure - pages are categorized into font type and then font name --- tests/make_sprite.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/tests/make_sprite.c b/tests/make_sprite.c index ac454e063..5cfed324b 100644 --- a/tests/make_sprite.c +++ b/tests/make_sprite.c @@ -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 )