Commit 3c6e026a4e1eb78b7cc35e613e33983967857fac

Tom Kacvinsky 2001-08-08T11:08:58

Added documentation and prototype for new function FT_Get_Name_Index.

diff --git a/include/freetype/freetype.h b/include/freetype/freetype.h
index 0fafb29..3c65a98 100644
--- a/include/freetype/freetype.h
+++ b/include/freetype/freetype.h
@@ -121,6 +121,7 @@ FT_BEGIN_HEADER
   /*    FT_Set_Transform                                                   */
   /*    FT_Load_Glyph                                                      */
   /*    FT_Get_Char_Index                                                  */
+  /*    FT_Get_Name_Index                                                  */
   /*    FT_Load_Char                                                       */
   /*                                                                       */
   /*    FT_LOAD_DEFAULT                                                    */
@@ -2358,6 +2359,29 @@ FT_BEGIN_HEADER
 
   /*************************************************************************/
   /*                                                                       */
+  /* <Function>                                                            */
+  /*    FT_Get_Name_Index                                                  */
+  /*                                                                       */
+  /* <Description>                                                         */
+  /*    Returns the glyph index of a given glyph name.  This function uses */
+  /*    driver specific objects to do the translation.                     */
+  /*                                                                       */
+  /* <Input>                                                               */
+  /*    face       :: A handle to the source face object.                  */
+  /*                                                                       */
+  /*    glyph_name :: The glyph name.                                      */
+  /*                                                                       */
+  /* <Return>                                                              */
+  /*    The glyph index.  0 means `undefined character code'.              */
+  /*                                                                       */
+  FT_EXPORT( FT_UInt )
+  FT_Get_Name_Index( FT_Face     face,
+                     FT_String*  glyph_name);
+
+
+
+  /*************************************************************************/
+  /*                                                                       */
   /* <Section>                                                             */
   /*    computations                                                       */
   /*                                                                       */