etc~ scripts and random things |
| git clone https://github.com/djnnvx/etc.git |
| log | files | refs | archive |
test-harness.c (592B)
1 /* 2 confirms that everything works 3 */ 4 5 #include <ft2build.h> 6 #include FT_FREETYPE_H 7 #include FT_GLYPH_H 8 9 int main(int argc, char ** argv) 10 { 11 FT_Library library; /* handle to library */ 12 FT_Face face; /* handle to face object */ 13 FT_Error error; /* hande to error*/ 14 15 16 error = FT_Init_FreeType(&library); 17 if (error) { printf("Could not load the library."); } 18 19 char * filename = argv[1]; 20 error = FT_New_Face(library, filename, 0, &face); /* create face object */ 21 if (error) { printf("Could not create a face."); return 1; } 22 23 // Cleanup 24 FT_Done_Face(face); 25 FT_Done_FreeType(library); 26 return 0; 27 }