I am using the FreeType2 library in an iPhone project, and I'm trying to just download a TTF file from the system, if possible.
FT_Library library; FT_Face face; int error; error = FT_Init_FreeType( &library ); if ( error == 0 ) printf("Initialized FreeType2\r\n"); error = FT_New_Face(library, "/System/Library/Fonts/Helvetica.ttf", 0, &face); if ( error == FT_Err_Cannot_Open_Resource ) printf("Font not found\r\n");
This error does not seem to be found for the file. Is / System / Library / Fonts not a font layout? Or iPhone applications simply do not have read access to this directory at all.
Thanks!
source share