>> You only get an error code if `FT_Done_Face' is called with an >> invalid handle, something which doesn't happen in a normal FreeType >> workflow. > > What are you supposed to do when it does happen?
You would only check the return value of `FT_Done_Face' if your code gets an `FT_Face' handle that it doesn't manage by itself (rather unlikely, but who knows). In this situation it could happen that the handle is NULL, and this should be reported back – not because `FT_Done_Face' can't handle value NULL but the fact that it has received such a handle, which indicates a problem in the calling program. For all other cases `FT_Done_Face' can't do any additional harm, so you can safely ignore its return value (similar to `free'). Werner _______________________________________________ Freetype mailing list Freetype@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype