Closed floppyhammer closed 1 year ago
If you want to shape just part of the string - then you can slice it manually. If you need pre/post-context - then this is not implemented yet. Or rather not available in the public api.
@RazrFalcon Thanks for the reply. It seems that manually slicing the string with the assistance of a bidi algorithm library is enough to get things done. I'm closing this.
From hb_buffer_add_utf8 in harfbuzz, it says:
I couldn't figure out how to set
item_offset
anditem_length
in rustybuzz. The closest thing I get isUnicodeBuffer::push_str
, which doesn't accept any arguments. Am I missing something?