summaryrefslogtreecommitdiff
path: root/src/autofit/hbshim.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/autofit/hbshim.c')
-rw-r--r--src/autofit/hbshim.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/autofit/hbshim.c b/src/autofit/hbshim.c
index 61a678b88..22adcaf01 100644
--- a/src/autofit/hbshim.c
+++ b/src/autofit/hbshim.c
@@ -18,14 +18,10 @@
#include <ft2build.h>
#include FT_FREETYPE_H
-
+#include "hbshim.h"
#ifdef FT_CONFIG_OPTION_USE_HARFBUZZ
-#include <hb.h>
-#include <hb-ot.h>
-#include <hb-ft.h>
-
/*************************************************************************/
/* */
@@ -160,7 +156,7 @@
if ( !globals || !style_class || !gstyles )
return FT_THROW( Invalid_Argument );
- face = hb_ft_face_create( globals->face, NULL );
+ face = hb_font_get_face( globals->hb_font );
lookups = hb_set_create();
glyphs = hb_set_create();
@@ -267,8 +263,6 @@
hb_set_destroy( lookups );
hb_set_destroy( glyphs );
- hb_face_destroy( face );
-
return FT_Err_Ok;
}