> I wrote FT_TrueTypeGX_Free() to receive FT_Face (to
> identify the memory object) and FT_Bytes to free,
> but it is possible to receive FT_Memory instead of
> FT_Face. Any recommendation?


Passing the face is better because memory is private:

  typedef struct  FT_FaceRec_
  {
    FT_Long           num_faces;
    FT_Long           face_index;
    ...
    /[EMAIL PROTECTED] begin */

    FT_Driver         driver;
    FT_Memory         memory;
    FT_Stream         stream;
  } FT_FaceRec;


Masatake


_______________________________________________
Freetype-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/freetype-devel

Reply via email to