Use the "new" folder. To compile and execute gcc example1.c ksvsk.c murmur3.c -Wall -I /usr/local/include/freetype2/ -lfreetype -o example1 ./example1 gcc example2.c ksvsk.c murmur3.c -Wall -I /usr/local/include/freetype2/ -lfreetype -o example2 ./example2 NOTE -> DONOT use Get_Padding render MONO / GRAYSCALE bitmaps. Use FT_Bitmap_Convert to make the width of bitmap a multiple of 4 bytes and then write it to file.