From fc61b5f211c76ce320a44a1b3e873b977103bc63 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Tue, 12 Jun 2012 08:07:19 +0200 Subject: [PATCH] Fix Savannah bug #36634. Minor documentation improvement of FT_Get_Char_Index. --- include/freetype/freetype.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/include/freetype/freetype.h b/include/freetype/freetype.h index de4d120fe..bc7e8aaaa 100644 --- a/include/freetype/freetype.h +++ b/include/freetype/freetype.h @@ -3093,9 +3093,15 @@ FT_BEGIN_HEADER /* */ /* If you use FreeType to manipulate the contents of font files */ /* directly, be aware that the glyph index returned by this function */ - /* doesn't always correspond to the internal indices used within */ - /* the file. This is done to ensure that value~0 always corresponds */ - /* to the `missing glyph'. */ + /* doesn't always correspond to the internal indices used within the */ + /* file. This is done to ensure that value~0 always corresponds to */ + /* the `missing glyph'. If the first glyph is not named `.notdef', */ + /* then for Type~1 and Type~42 fonts, `.notdef' will be moved into */ + /* the glyph ID~0 position, and whatever was there will be moved to */ + /* the position `.notdef' had. For Type~1 fonts, if there is no */ + /* `.notdef' glyph at all, then one will be created at index~0 and */ + /* whatever was there will be moved to the last index -- Type~42 */ + /* fonts are considered invalid under this condition. */ /* */ FT_EXPORT( FT_UInt ) FT_Get_Char_Index( FT_Face face,