Re: [ft] use of FT_New_Library function

2015-03-06 Thread Lawrence D'Oliveiro
On Fri, 06 Mar 2015 23:23:13 +0100 (CET), Werner LEMBERG wrote: So you see, the FT_Memory object you pass is expected to remain valid for the life of the FT_Library. Shall something be added to the documentation? If yes, can you provide a patch? Sure, how about, for

Re: [ft] use of FT_New_Library function

2015-03-06 Thread Werner LEMBERG
Sure, [...] Thanks for the suggestion; I've added something similar to the git repository. Werner ___ Freetype mailing list Freetype@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype

[ft] use of FT_New_Library function

2015-03-06 Thread Martin Štrympl
I am using FT_New_Library function with a pointer to filled FT_Memory object. It starts working good, but if I call FT function FT_Open_Face, it fails (SIGSEG) during calling ft_mem_qalloc function. GNU Debugger say, it call bad function from this function. My initialization code is:

Re: [ft] use of FT_New_Library function

2015-03-06 Thread Werner LEMBERG
So you see, the FT_Memory object you pass is expected to remain valid for the life of the FT_Library. Shall something be added to the documentation? If yes, can you provide a patch? Werner ___ Freetype mailing list Freetype@nongnu.org

Re: [ft] use of FT_New_Library function

2015-03-06 Thread Lawrence D'Oliveiro
On Fri, 6 Mar 2015 17:34:55 +0100, Martin Štrympl wrote: // set library instance with own memory manager { FT_MemoryRec d_memory; d_memory.user = ps_pack; d_memory.alloc = ESEM_Font_Font_FreeType2_FT_Alloc_Func; d_memory.free =