Minor
We now support using -1 for NUL-terminated strings.
This commit is contained in:
parent
90e312cb85
commit
46d86a73a1
|
@ -68,8 +68,6 @@ _hb_cr_text_glyphs (cairo_t *cr,
|
||||||
if (shape_opts->language)
|
if (shape_opts->language)
|
||||||
hb_buffer_set_language (hb_buffer, hb_language_from_string (shape_opts->language, -1));
|
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);
|
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))
|
if (!hb_shape_full (hb_font, hb_buffer, shape_opts->features, shape_opts->num_features, NULL, shape_opts->shapers))
|
||||||
|
|
Loading…
Reference in New Issue