From 29bca65ddaaec4c01b788237a94770c1e5750cbb Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Tue, 5 Nov 2013 23:46:25 +0100 Subject: [PATCH] Improve documentation of `FT_Load_Sfnt_Table'. --- include/freetype/tttables.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/freetype/tttables.h b/include/freetype/tttables.h index 3766b5300..ce7ad793b 100644 --- a/include/freetype/tttables.h +++ b/include/freetype/tttables.h @@ -676,6 +676,12 @@ FT_BEGIN_HEADER * error = FT_Load_Sfnt_Table( face, tag, 0, buffer, &length ); * if ( error ) { ... could not load table ... } * } + * + * Note that structures like @TT_Header or @TT_OS2 can't be used with + * this function; the are limited to @FT_Get_Sfnt_Table. Reason is that + * the size of those structures may vary depending on the processor + * architecture (e.g. 32bit vs. 64bit or big endian vs. little endian). + * */ FT_EXPORT( FT_Error ) FT_Load_Sfnt_Table( FT_Face face,