Skip to content

Commit

Permalink
[buffer] Overlay segment-properties in hb_buffer_append()
Browse files Browse the repository at this point in the history
  • Loading branch information
behdad authored and Matthias Clasen committed Jan 7, 2022
1 parent 4a3468f commit 55ebe0b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/hb-buffer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1788,6 +1788,8 @@ hb_buffer_append (hb_buffer_t *buffer,
if (!buffer->have_positions && source->have_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]));
if (buffer->have_positions)
memcpy (buffer->pos + orig_len, source->pos + start, (end - start) * sizeof (buffer->pos[0]));
Expand Down

0 comments on commit 55ebe0b

Please sign in to comment.