freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] About the function "FT_New_Memory_Face".


From: Werner LEMBERG
Subject: Re: [ft-devel] About the function "FT_New_Memory_Face".
Date: Tue, 03 Jun 2008 09:17:42 +0200 (CEST)

> When I use the memory font, I use the function “FT_New_Memory_Face”
> to new a font face.
>
> There is a font buffer in the function parameters.
>
> Does the freetype save a copy of the buffer?

No.

> I want to know when the buffer was free?

?  Please reformulate.

> Does it can be freed buy any function or when the freetype was done?

The documentation says that you must not deallocate the memory before
calling FT_Done_Face.

> PS: In my project, I will use lots of memory fonts, and I found the
> memory used raised continually.

You might try FreeType's internal memory debugger.  See docs/DEBUG.
Valgrind is another great tool for finding memory leaks.


    Werner

reply via email to

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