[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft-devel] FT_New_Memory_Face free buffer? (v2.2.1, win32)
From: |
Werner LEMBERG |
Subject: |
Re: [ft-devel] FT_New_Memory_Face free buffer? (v2.2.1, win32) |
Date: |
Sat, 09 Dec 2006 01:00:04 +0100 (CET) |
> > > The question is how can I reliably determine from the face
> > > itself if the font was loaded from Memory?
> >
> > A good question. Why do you need that? Up to now nobody has ever
> > requested that.
>
> If FreeType cannot tell me what type of allocation it used for the
> font (eg memory, file-pointer, etc.) I have to keep track of this
> myself. This was the reason why I asked.
Looking into the source code, I think that you can use
FT_FACE_FLAG_EXTERNAL_STREAM for that purpose. Currently, it is
tagged as being internal, but I don't see a specific reason for that.
David, shall I make this flag `public'?
Werner