Hi folks. Here's a minute addition to the FT_Open_Args documentation that I think could be useful for FFI binding authors.
Feel free to ignore this mail altogether, if the proposed change is not appropriate. Apologies if this is a wrong avenue to contribute --- I tried but failed to find specific contribution instructions. Cheers, F
From aa5f914eaa7f6163bfd7b54e7ae7389c602191a0 Mon Sep 17 00:00:00 2001 From: Filip Filmar <[email protected]> Date: Sun, 20 Oct 2019 02:05:02 -0700 Subject: [PATCH] Clarifies the ownership of `pathname`. Don't expect the open to clear the buffer up for you. This may be obvious in C, but not so obvious in FFI bindings for freetype2. --- include/freetype/freetype.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/freetype/freetype.h b/include/freetype/freetype.h index a6bb667e3..a33fb61f4 100644 --- a/include/freetype/freetype.h +++ b/include/freetype/freetype.h @@ -2078,7 +2078,7 @@ FT_BEGIN_HEADER * The size in bytes of the file in memory. * * pathname :: - * A pointer to an 8-bit file pathname. + * A pointer to an 8-bit file pathname. The pointer is not owned. * * stream :: * A handle to a source stream object. -- 2.23.0.866.gb869b98d4c-goog
_______________________________________________ Freetype mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/freetype
