A little bit late but here's the fix without touching FT_New_Meory_Face.
TK
---------------------------------------------------------------------------------------
--- t42objs.c 2005-08-15 16:05:56.000000000 -0400
+++ t42objs_1.c 2005-11-28 15:00:42.000000000 -0500
@@ -259,11 +259,20 @@
root->available_sizes = 0;
/* Load the TTF font embedded in the T42 font */
- error = FT_New_Memory_Face( FT_FACE_LIBRARY( face ),
- face->ttf_data,
- face->ttf_size,
- 0,
- &face->ttf_face );
+ {
+ FT_Open_Args args;
+
+ args.flags = FT_OPEN_MEMORY;
+ args.memory_base = face->ttf_data;
+ args.memory_size = face->ttf_size;
+ if(num_params){
+ args.flags |= FT_OPEN_PARAMS;
+ args.num_params = num_params;
+ args.params = params;
+ }
+ error = FT_Open_Face( FT_FACE_LIBRARY( face ), &args, 0, &face->ttf_face);
+ }
+
if ( error )
goto Exit;
---------------------------------------------------------
+++ t42objs_1.c 2005-11-28 15:00:42.000000000 -0500
@@ -259,11 +259,20 @@
root->available_sizes = 0;
/* Load the TTF font embedded in the T42 font */
- error = FT_New_Memory_Face( FT_FACE_LIBRARY( face ),
- face->ttf_data,
- face->ttf_size,
- 0,
- &face->ttf_face );
+ {
+ FT_Open_Args args;
+
+ args.flags = FT_OPEN_MEMORY;
+ args.memory_base = face->ttf_data;
+ args.memory_size = face->ttf_size;
+ if(num_params){
+ args.flags |= FT_OPEN_PARAMS;
+ args.num_params = num_params;
+ args.params = params;
+ }
+ error = FT_Open_Face( FT_FACE_LIBRARY( face ), &args, 0, &face->ttf_face);
+ }
+
if ( error )
goto Exit;
---------------------------------------------------------
_______________________________________________ Freetype-devel mailing list Freetype-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype-devel