54 |
FTC_ImageTypeRec font_type; |
FTC_ImageTypeRec font_type; |
55 |
charmap_t* cmap = NULL; |
charmap_t* cmap = NULL; |
56 |
double bench_time = BENCH_TIME; |
double bench_time = BENCH_TIME; |
57 |
|
int preload = 0; |
58 |
|
FT_Byte* memory_file = NULL; |
59 |
|
long memory_size; |
60 |
|
|
61 |
|
|
62 |
/* |
/* |
286 |
FT_Face bench_face; |
FT_Face bench_face; |
287 |
FT_Error error; |
FT_Error error; |
288 |
|
|
289 |
error = FT_New_Face( lib, filename, 0, &bench_face ); |
if ( preload ) |
290 |
|
error = FT_New_Memory_Face( lib, memory_file, memory_size, 0, &bench_face ); |
291 |
|
else |
292 |
|
error = FT_New_Face( lib, filename, 0, &bench_face ); |
293 |
if ( !error ) |
if ( !error ) |
294 |
{ |
{ |
295 |
FT_Done_Face( bench_face ); |
FT_Done_Face( bench_face ); |
379 |
long max_bytes = CACHE_SIZE * 1024; |
long max_bytes = CACHE_SIZE * 1024; |
380 |
char* tests = NULL; |
char* tests = NULL; |
381 |
int size; |
int size; |
|
int preload = 0; |
|
|
FT_Byte* memory_file = NULL; |
|
|
long memory_size; |
|
382 |
|
|
383 |
while (argc > 1 && argv[1][0] == '-') |
while (argc > 1 && argv[1][0] == '-') |
384 |
{ |
{ |