Break text runs by unicode script

This commit is contained in:
Matt Brubeck 2015-09-25 17:17:50 -07:00
parent 062493fac6
commit 371e6897e1
8 changed files with 51 additions and 1 deletions

View file

@ -215,6 +215,8 @@ impl ShaperMethods for Shaper {
HB_DIRECTION_LTR
});
hb_buffer_set_script(hb_buffer, options.script.to_hb_script());
hb_buffer_add_utf8(hb_buffer,
text.as_ptr() as *const c_char,
text.len() as c_int,