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;