[buffer] Overlay segment-properties in hb_buffer_append()
Part of https://github.com/harfbuzz/harfbuzz/issues/1555
This commit is contained in:
parent
6a66992842
commit
36e9f467a4
|
@ -1788,6 +1788,8 @@ hb_buffer_append (hb_buffer_t *buffer,
|
||||||
if (!buffer->have_positions && source->have_positions)
|
if (!buffer->have_positions && source->have_positions)
|
||||||
buffer->clear_positions ();
|
buffer->clear_positions ();
|
||||||
|
|
||||||
|
hb_segment_properties_overlay (&buffer->props, &source->props);
|
||||||
|
|
||||||
memcpy (buffer->info + orig_len, source->info + start, (end - start) * sizeof (buffer->info[0]));
|
memcpy (buffer->info + orig_len, source->info + start, (end - start) * sizeof (buffer->info[0]));
|
||||||
if (buffer->have_positions)
|
if (buffer->have_positions)
|
||||||
memcpy (buffer->pos + orig_len, source->pos + start, (end - start) * sizeof (buffer->pos[0]));
|
memcpy (buffer->pos + orig_len, source->pos + start, (end - start) * sizeof (buffer->pos[0]));
|
||||||
|
|
Loading…
Reference in New Issue