Commit b93b0f5f7d396746b9a9e2b9916d9a0289974ebc

David Turner 2002-03-14T09:28:51

* include/freetype/internal/ftobjs.h, src/base/ftapi.c, src/base/ftobjs.c: updated a few face method definitions: FT_PSName_Requester => FT_Face_GetPostscriptNameFunc FT_Glyph_Name_Requester => FT_Face_GetGlyphNameFunc FT_Name_Index_Requester => FT_Face_GetGlyphNameIndexFunc

diff --git a/ChangeLog b/ChangeLog
index 8f6b038..10290b7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -27,6 +27,14 @@
           src/winfonts/winfnt.c, src/winfonts/winfnt.h:
           updating the type definitions for font font drivers
 
+        * include/freetype/internal/ftobjs.h,
+          src/base/ftapi.c, src/base/ftobjs.c: updated a few face method
+          definitions:
+          
+            FT_PSName_Requester     => FT_Face_GetPostscriptNameFunc
+            FT_Glyph_Name_Requester => FT_Face_GetGlyphNameFunc
+            FT_Name_Index_Requester => FT_Face_GetGlyphNameIndexFunc
+
 2002-03-13  Antoine Leca    <antoine@oriolnet.com>
 
         * include/freetype/config/ftoption.h: changed the automatic detection
diff --git a/include/freetype/internal/ftobjs.h b/include/freetype/internal/ftobjs.h
index 9e9de88..6459c6c 100644
--- a/include/freetype/internal/ftobjs.h
+++ b/include/freetype/internal/ftobjs.h
@@ -580,7 +580,7 @@ FT_BEGIN_HEADER
   typedef struct  FT_DriverRec_
   {
     FT_ModuleRec      root;
-    FT_Driver_Class  clazz;
+    FT_Driver_Class   clazz;
 
     FT_ListRec        faces_list;
     void*             extensions;
@@ -688,17 +688,17 @@ FT_BEGIN_HEADER
                             FT_UInt       render_mode );
 
   typedef const char*
-  (*FT_PSName_Requester)( FT_Face  face );
+  (*FT_Face_GetPostscriptNameFunc)( FT_Face  face );
 
   typedef FT_Error
-  (*FT_Glyph_Name_Requester)( FT_Face     face,
-                              FT_UInt     glyph_index,
-                              FT_Pointer  buffer,
-                              FT_UInt     buffer_max );
+  (*FT_Face_GetGlyphNameFunc)( FT_Face     face,
+                               FT_UInt     glyph_index,
+                               FT_Pointer  buffer,
+                               FT_UInt     buffer_max );
 
   typedef FT_UInt
-  (*FT_Name_Index_Requester)( FT_Face     face,
-                              FT_String*  glyph_name );
+  (*FT_Face_GetGlyphNameIndexFunc)( FT_Face     face,
+                                    FT_String*  glyph_name );
 
 
 #ifndef FT_CONFIG_OPTION_NO_DEFAULT_SYSTEM
diff --git a/src/base/ftapi.c b/src/base/ftapi.c
index fff2dbe..2e5b18a 100644
--- a/src/base/ftapi.c
+++ b/src/base/ftapi.c
@@ -1188,10 +1188,10 @@
 
       if ( clazz->get_interface )
       {
-        FT_Name_Index_Requester  requester;
+        FT_Face_GetGlyphNameIndexFunc  requester;
 
 
-        requester = (FT_Name_Index_Requester)clazz->get_interface(
+        requester = (FT_Face_GetGlyphNameIndexFunc)clazz->get_interface(
                       FT_MODULE( driver ), "name_index" );
         if ( requester )
           result = requester( face, glyph_name );
@@ -1228,10 +1228,10 @@
 
       if ( clazz->get_interface )
       {
-        FT_Glyph_Name_Requester  requester;
+        FT_Face_GetGlyphNameFunc  requester;
 
 
-        requester = (FT_Glyph_Name_Requester)clazz->get_interface(
+        requester = (FT_Face_GetGlyphNameFunc)clazz->get_interface(
                       FT_MODULE( driver ), "glyph_name" );
         if ( requester )
           error = requester( face, glyph_index, buffer, buffer_max );
@@ -1263,10 +1263,10 @@
 
       if ( clazz->get_interface )
       {
-        FT_PSName_Requester  requester;
+        FT_Face_GetPostscriptNameFunc  requester;
 
 
-        requester = (FT_PSName_Requester)clazz->get_interface(
+        requester = (FT_Face_GetPostscriptNameFunc)clazz->get_interface(
                       FT_MODULE( driver ), "postscript_name" );
         if ( requester )
           result = requester( face );
diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c
index ef778d9..b2766c3 100644
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -1547,10 +1547,10 @@
 
       if ( clazz->get_interface )
       {
-        FT_Name_Index_Requester  requester;
+        FT_Face_GetGlyphNameIndexFunc  requester;
 
 
-        requester = (FT_Name_Index_Requester)clazz->get_interface(
+        requester = (FT_Face_GetGlyphNameIndexFunc)clazz->get_interface(
                       FT_MODULE( driver ), "name_index" );
         if ( requester )
           result = requester( face, glyph_name );
@@ -1587,10 +1587,10 @@
 
       if ( clazz->get_interface )
       {
-        FT_Glyph_Name_Requester  requester;
+        FT_Face_GetGlyphNameFunc  requester;
 
 
-        requester = (FT_Glyph_Name_Requester)clazz->get_interface(
+        requester = (FT_Face_GetGlyphNameFunc)clazz->get_interface(
                       FT_MODULE( driver ), "glyph_name" );
         if ( requester )
           error = requester( face, glyph_index, buffer, buffer_max );
@@ -1622,10 +1622,10 @@
 
       if ( clazz->get_interface )
       {
-        FT_PSName_Requester  requester;
+        FT_Face_GetPostscriptNameFunc  requester;
 
 
-        requester = (FT_PSName_Requester)clazz->get_interface(
+        requester = (FT_Face_GetPostscriptNameFunc)clazz->get_interface(
                       FT_MODULE( driver ), "postscript_name" );
         if ( requester )
           result = requester( face );