Hello Di,
sorry for the late reply.
> I use FreeType to read [a] TTF font and get the image from
> FTC_SBitRec. Then I copy the data to [the] Alpha channel in 32Bit
> bitmap.
>
> That means when I finish the copy action, the FTC_SBitRec.buffer is
> not useful. My question is [whether] I need [to] release the memory
> by myself or [whether] FreeType can do it by itself.
If you call `FTC_Manager_Done', all contained cache nodes are emptied.
`Emptying' also implies the deallocation of all associated (internal)
buffers. So the answer is that FreeType handles deallocation of cache
buffers by itself.
Werner
_______________________________________________
Freetype-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/freetype-devel