[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [ft] FT_Face from memory
From: |
Turner, David |
Subject: |
RE: [ft] FT_Face from memory |
Date: |
Thu, 6 Oct 2005 10:47:07 +0200 |
> Hi!
>
> Whould anybody prompt to me about following situation.
> I have some font file loaded in memory, for example,
>
> unsigned char* buff; /*loaded file*/
> size_t buffSz; /*its size*/
> FT_Face face;
> ......
>
> /*then create FT_Face*/
> FT_New_Memory_Face(Lib,
> buff,
> buffSz,
> 0,
> &face);
> /*When I call*/
> FT_Done_Face(face);
>
> Is this free variable "buff" or not?
No, it doesn't free anything. And you must keep the 'buff'
bytes in memory as long as the FT_Face is alive, since it's
going to reference the data within the memory block directly.
Regards,
- David Turner
- The FreeType Project (www.freetype.org)
>
> --
> Best regards,
> Nikolay mailto:address@hidden
>
>
>
>
> _______________________________________________
> Freetype mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/freetype
>