< prev index next >

src/java.desktop/share/native/libfreetype/src/base/ftobjs.c

Print this page




4043 
4044         if ( variantSelector > 0xFFFFFFFFUL )
4045         {
4046           FT_TRACE1(( "FT_Get_Char_Index: too large variantSelector" ));
4047           FT_TRACE1(( " 0x%x is truncated\n", variantSelector ));
4048         }
4049 
4050         result = vcmap->clazz->variantchar_list( vcmap, memory,
4051                                                  (FT_UInt32)variantSelector );
4052       }
4053     }
4054 
4055     return result;
4056   }
4057 
4058 
4059   /* documentation is in freetype.h */
4060 
4061   FT_EXPORT_DEF( FT_UInt )
4062   FT_Get_Name_Index( FT_Face     face,
4063                      FT_String*  glyph_name )
4064   {
4065     FT_UInt  result = 0;
4066 
4067 
4068     if ( face                       &&
4069          FT_HAS_GLYPH_NAMES( face ) &&
4070          glyph_name                 )
4071     {
4072       FT_Service_GlyphDict  service;
4073 
4074 
4075       FT_FACE_LOOKUP_SERVICE( face,
4076                               service,
4077                               GLYPH_DICT );
4078 
4079       if ( service && service->name_index )
4080         result = service->name_index( face, glyph_name );
4081     }
4082 
4083     return result;




4043 
4044         if ( variantSelector > 0xFFFFFFFFUL )
4045         {
4046           FT_TRACE1(( "FT_Get_Char_Index: too large variantSelector" ));
4047           FT_TRACE1(( " 0x%x is truncated\n", variantSelector ));
4048         }
4049 
4050         result = vcmap->clazz->variantchar_list( vcmap, memory,
4051                                                  (FT_UInt32)variantSelector );
4052       }
4053     }
4054 
4055     return result;
4056   }
4057 
4058 
4059   /* documentation is in freetype.h */
4060 
4061   FT_EXPORT_DEF( FT_UInt )
4062   FT_Get_Name_Index( FT_Face           face,
4063                      const FT_String*  glyph_name )
4064   {
4065     FT_UInt  result = 0;
4066 
4067 
4068     if ( face                       &&
4069          FT_HAS_GLYPH_NAMES( face ) &&
4070          glyph_name                 )
4071     {
4072       FT_Service_GlyphDict  service;
4073 
4074 
4075       FT_FACE_LOOKUP_SERVICE( face,
4076                               service,
4077                               GLYPH_DICT );
4078 
4079       if ( service && service->name_index )
4080         result = service->name_index( face, glyph_name );
4081     }
4082 
4083     return result;


< prev index next >