diff --git a/tests/make_png/bitmap.c b/tests/make_png/bitmap.c
index 0f7278c06..db6d616e4 100644
--- a/tests/make_png/bitmap.c
+++ b/tests/make_png/bitmap.c
@@ -621,6 +621,46 @@ void Stitch(IMAGE* left, IMAGE* right, IMAGE* result){
}
}
+/* This prints table-headers to a HTML file for the list-view page */
+void Print_Head( FILE* fp, char* family, char* style, int size ){
+ fprintf(fp,
+ "\n\
+
\n\
+ \n\
+ Glyph_Diff\n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+
Font Family: %s
\n\
+
Style: %s
\n\
+
%dpt at %dppi
\n\
+
\n\
+ \n\
+ \n\
+ \n\
+ \n\
+ Glyph Index\n\
+ | \n\
+ \n\
+ Glyph Name\n\
+ | \n\
+ \n\
+ Difference\n\
+ | \n\
+ \n\
+ Images\n\
+ | \n\
+
\n\
+ \n\
+ \n", family,
+ style,
+ size,
+ DPI );
+}
+
/* This prints a row to the HTML file for the list-view page. */
void Print_Row( FILE* fp, int index, char* name, int diff )
{
diff --git a/tests/make_png/bitmap.h b/tests/make_png/bitmap.h
index c7fb26b2c..d74a08171 100644
--- a/tests/make_png/bitmap.h
+++ b/tests/make_png/bitmap.h
@@ -72,15 +72,10 @@ void Make_PNG (FT_Bitmap* bitmap,IMAGE* fruit, int i,int render_mode);
int Generate_PNG (IMAGE *bitmap, const char *path,int render_mode);
/* Read PNG */
void Read_PNG(char *filename, IMAGE * after_effect);
-/* Add an effect using two PNG images */
-/* Base Glyph = Gray {127,0,0,255} OR as it is */
-/* Differences = Red {255,0,0,255} */
-/* Effect_ID = {1 or 2} */
+/* Add effects using two PNG images and generate an image*/
int Add_effect(IMAGE* base, IMAGE* test, IMAGE* out, int Effect_ID);
/* Stitch 2 PNG files */
void Stitch(IMAGE* left, IMAGE* right, IMAGE* result);
-/* Print the row in list-view webpage */
-void Print_Row( FILE* fp, int index, char* name, int diff );
/* Finding the first non-empty (non-white) column */
int First_Column(IMAGE* input);
/* Finding the first non-empty (non-white) row */
@@ -91,3 +86,7 @@ IMAGE* Append_Columns(IMAGE* small, IMAGE* big);
IMAGE* Append_Rows(IMAGE* small, IMAGE* big);
/* calculating the Pixel Differences */
int Image_Diff( IMAGE* base, IMAGE* test);
+/* Print the row in list-view webpage */
+void Print_Row( FILE* fp, int index, char* name, int diff );
+/* Print the table-headers in list-view webpage */
+void Print_Head( FILE* fp, char* family, char* style, int size );
diff --git a/tests/make_png/make_sprite.c b/tests/make_png/make_sprite.c
index 867788248..40c324aea 100644
--- a/tests/make_png/make_sprite.c
+++ b/tests/make_png/make_sprite.c
@@ -305,8 +305,8 @@ int main(int argc, char const *argv[])
test_slot = test_face->glyph;
struct stat st = {0};
- if (stat("./images/", &st) == -1) {
- mkdir("./images/", 0777);
+ if (stat("./html/", &st) == -1) {
+ mkdir("./html/", 0777);
}
if (stat("./html/images/", &st) == -1) {