ref: 3205a44d01a1d676f218efd31d6104e8ca86ea05
parent: 4191b7761b613dcee61e66450138757586545fca
author: Werner Lemberg <[email protected]>
date: Fri Dec 9 01:55:34 EST 2016
[sfnt] Revert change from 2016-12-08. I missed the functionality of `ft_module_get_service', which makes the change unnecessary.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2016-12-09 Werner Lemberg <[email protected]>
+
+ [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 <[email protected]>
Add framework to support services with 8 functions.
--- a/include/freetype/internal/sfnt.h
+++ b/include/freetype/internal/sfnt.h
@@ -24,9 +24,7 @@
#include FT_INTERNAL_DRIVER_H
#include FT_INTERNAL_TRUETYPE_TYPES_H
-#include FT_SERVICE_GLYPH_DICT_H
-
FT_BEGIN_HEADER
@@ -591,11 +589,6 @@
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 @@
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 @@
load_strike_metrics_, \
get_metrics_, \
get_name_, \
- get_glyph_name_, \
- get_name_index_ \
};
#else /* FT_CONFIG_OPTION_PIC */
@@ -710,9 +699,7 @@
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 @@
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 */
--- 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 */
)