summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKushal K S V S <kkushal32@gmail.com>2018-03-22 16:30:49 +0530
committerKushal K S V S <kkushal32@gmail.com>2018-03-22 16:30:49 +0530
commit7d3fd3115dd125010edd7549846a8bff9ef03622 (patch)
tree603fcac9c5c79732634ad24e5cd0623fc1dc7dcb
parent7b9c8e88bacedcb968e90cde0d9412cd379cdb98 (diff)
downloadfreetype2-7d3fd3115dd125010edd7549846a8bff9ef03622.tar.gz
Using the functions added / changing the directory structure - pages are categorized into font type and then font name
-rw-r--r--tests/make_sprite.c13
1 files 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 )