diff --git a/ChangeLog b/ChangeLog index 3179268ef..d67fc71de 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2016-12-09 Werner Lemberg + + [sfnt] Revert change from 2016-12-08. + + I missed the functionality of `ft_module_get_service', which makes + the change unnecessary. + 2016-12-08 Werner Lemberg Add framework to support services with 8 functions. diff --git a/include/freetype/internal/sfnt.h b/include/freetype/internal/sfnt.h index 57d4ef0a2..e139315a1 100644 --- a/include/freetype/internal/sfnt.h +++ b/include/freetype/internal/sfnt.h @@ -24,8 +24,6 @@ #include FT_INTERNAL_DRIVER_H #include FT_INTERNAL_TRUETYPE_TYPES_H -#include FT_SERVICE_GLYPH_DICT_H - FT_BEGIN_HEADER @@ -591,11 +589,6 @@ FT_BEGIN_HEADER TT_Get_Name_Func get_name; - /* since 2.7.1; */ - /* this is the SFNT specific part of the glyph dict service */ - FT_GlyphDict_GetNameFunc get_glyph_name; - FT_GlyphDict_NameIndexFunc get_name_index; - } SFNT_Interface; @@ -635,9 +628,7 @@ FT_BEGIN_HEADER set_sbit_strike_, \ load_strike_metrics_, \ get_metrics_, \ - get_name_, \ - get_glyph_name_, \ - get_name_index_ ) \ + get_name_ ) \ static const SFNT_Interface class_ = \ { \ goto_table_, \ @@ -670,8 +661,6 @@ FT_BEGIN_HEADER load_strike_metrics_, \ get_metrics_, \ get_name_, \ - get_glyph_name_, \ - get_name_index_ \ }; #else /* FT_CONFIG_OPTION_PIC */ @@ -710,9 +699,7 @@ FT_BEGIN_HEADER set_sbit_strike_, \ load_strike_metrics_, \ get_metrics_, \ - get_name_, \ - get_glyph_name_, \ - get_name_index_ ) \ + get_name_ ) \ void \ FT_Init_Class_ ## class_( FT_Library library, \ SFNT_Interface* clazz ) \ @@ -749,8 +736,6 @@ FT_BEGIN_HEADER clazz->load_strike_metrics = load_strike_metrics_; \ clazz->get_metrics = get_metrics_; \ clazz->get_name = get_name_; \ - clazz->get_glyph_name = get_glyph_name; \ - clazz->get_name_index = get_name_index_; \ } #endif /* FT_CONFIG_OPTION_PIC */ diff --git a/src/sfnt/sfdriver.c b/src/sfnt/sfdriver.c index 9cf6973d3..73343a6e6 100644 --- a/src/sfnt/sfdriver.c +++ b/src/sfnt/sfdriver.c @@ -528,12 +528,7 @@ tt_face_get_metrics, /* TT_Get_Metrics_Func get_metrics */ - tt_face_get_name, /* TT_Get_Name_Func get_name */ - - PUT_PS_NAMES( sfnt_get_glyph_name ), - /* FT_GlyphDict_GetNameFunc get_glyph_name */ - PUT_PS_NAMES( sfnt_get_name_index ) - /* FT_GlyphDict_NameIndexFunc get_name_index */ + tt_face_get_name /* TT_Get_Name_Func get_name */ )