Added documentation and prototype for new function FT_Get_Name_Index.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
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 */
/* */