summaryrefslogtreecommitdiffstats
path: root/src/raster/ftmisc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/raster/ftmisc.h')
-rw-r--r--src/raster/ftmisc.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/raster/ftmisc.h b/src/raster/ftmisc.h
index d9d73e3..f04b540 100644
--- a/src/raster/ftmisc.h
+++ b/src/raster/ftmisc.h
@@ -52,6 +52,31 @@
(FT_ULong)_x4 )
+ /* from include/freetype2/ftsystem.h */
+
+ typedef struct FT_MemoryRec_* FT_Memory;
+
+ typedef void* (*FT_Alloc_Func)( FT_Memory memory,
+ long size );
+
+ typedef void (*FT_Free_Func)( FT_Memory memory,
+ void* block );
+
+ typedef void* (*FT_Realloc_Func)( FT_Memory memory,
+ long cur_size,
+ long new_size,
+ void* block );
+
+ typedef struct FT_MemoryRec_
+ {
+ void* user;
+
+ FT_Alloc_Func alloc;
+ FT_Free_Func free;
+ FT_Realloc_Func realloc;
+
+ } FT_MemoryRec;
+
/* from src/ftcalc.c */
#include <inttypes.h>