freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] Problem with Type 42 incremental downloading font


From: Taek Kwan(TK) Lee
Subject: Re: [ft-devel] Problem with Type 42 incremental downloading font
Date: Fri, 2 Dec 2005 14:40:05 -0500

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;
 ---------------------------------------------------------

reply via email to

[Prev in Thread] Current Thread [Next in Thread]