* src/type42/t42objs.x (T42_Face_Init): Replace call to
FT_New_Memory_Face with call to FT_Open_Face to pass `params'.
This commit is contained in:
parent
21a7d84448
commit
2a0903a54b
|
@ -1,3 +1,8 @@
|
|||
2005-12-02 Taek Kwan(TK) Lee <taeklee@gmail.com>
|
||||
|
||||
* src/type42/t42objs.x (T42_Face_Init): Replace call to
|
||||
FT_New_Memory_Face with call to FT_Open_Face to pass `params'.
|
||||
|
||||
2005-11-30 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
* docs/CHANGES: Document ftdump's `-v' option.
|
||||
|
|
|
@ -263,11 +263,25 @@
|
|||
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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue