We now support using -1 for NUL-terminated strings.
This commit is contained in:
Behdad Esfahbod 2011-09-08 16:43:15 -04:00
parent 90e312cb85
commit 46d86a73a1

View File

@ -68,8 +68,6 @@ _hb_cr_text_glyphs (cairo_t *cr,
if (shape_opts->language)
hb_buffer_set_language (hb_buffer, hb_language_from_string (shape_opts->language, -1));
if (len < 0)
len = strlen (utf8);
hb_buffer_add_utf8 (hb_buffer, utf8, len, 0, len);
if (!hb_shape_full (hb_font, hb_buffer, shape_opts->features, shape_opts->num_features, NULL, shape_opts->shapers))