From 0ac53f1914a4a1b7d8697470a14f50cf92dd1e3b Mon Sep 17 00:00:00 2001 From: Adam Nemecek Date: Fri, 17 Jul 2020 10:40:20 -0700 Subject: [PATCH] fix --- src/hb_layout.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hb_layout.rs b/src/hb_layout.rs index 7542ac1..edc9640 100644 --- a/src/hb_layout.rs +++ b/src/hb_layout.rs @@ -5,7 +5,7 @@ use std::cell::RefCell; use std::collections::HashMap; use harfbuzz::sys::{ - hb_buffer_get_glyph_infos, + hb_buffer_get_glyph_infos, hb_ot_font_set_funcs, hb_buffer_get_glyph_positions, hb_face_create, hb_face_destroy, hb_face_reference, hb_face_t, hb_font_create, hb_font_destroy, hb_position_t, hb_shape, }; @@ -88,6 +88,7 @@ pub fn layout_run(style: &TextStyle, font: &FontRef, text: &str) -> Layout { let hb_face = hb_thread_data.create_hb_face_for_font(font); unsafe { let hb_font = hb_font_create(hb_face.hb_face); + hb_ot_font_set_funcs(hb_font); hb_shape(hb_font, b.as_ptr(), std::ptr::null(), 0); hb_font_destroy(hb_font); let mut n_glyph = 0;