Example #1
0
File: afshaper.c Project: 93i/godot
  void*
  af_shaper_buf_create( FT_Face  face )
  {
    FT_Error   error;
    FT_Memory  memory = face->memory;
    FT_ULong*  buf;


    FT_MEM_ALLOC( buf, sizeof ( FT_ULong ) );

    return (void*)buf;
  }
Example #2
0
 static voidpf
 ft_gzip_alloc( FT_Memory  memory,
                uInt       items,
                uInt       size )
 {
   FT_ULong    sz = (FT_ULong)size * items;
   FT_Pointer  p;

   FT_MEM_ALLOC( p, sz );

   return (voidpf) p;
 }