freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] failed to compile ftvalid.c


From: Masatake YAMATO
Subject: Re: [ft-devel] failed to compile ftvalid.c
Date: Fri, 18 Nov 2005 14:52:05 +0900 (JST)

> 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;
    ...
    /address@hidden begin */

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


Masatake




reply via email to

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