The HarfBuzz C API takes a pointer to text, its length, and start and length of subitem (run) being shaped, and this is important when shaping parts of larger text. The rust API takes only a string, so one can only the part being shaped without the rest of its context (which prevents HarfBuzz from doing things like Arabic shaping across runs of text).
The HarfBuzz C API takes a pointer to text, its length, and start and length of subitem (run) being shaped, and this is important when shaping parts of larger text. The rust API takes only a string, so one can only the part being shaped without the rest of its context (which prevents HarfBuzz from doing things like Arabic shaping across runs of text).