|
|
@ -255,13 +255,11 @@ struct hb_buffer_t |
|
|
|
/* Copies glyph at idx to output but doesn't advance idx */ |
|
|
|
/* Copies glyph at idx to output but doesn't advance idx */ |
|
|
|
HB_NODISCARD bool copy_glyph () |
|
|
|
HB_NODISCARD bool copy_glyph () |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (unlikely (!make_room_for (0, 1))) return false; |
|
|
|
/* Extra copy because cur()'s return can be freed within
|
|
|
|
|
|
|
|
* output_info() call if buffer reallocates. */ |
|
|
|
out_info[out_len] = info[idx]; |
|
|
|
return output_info (hb_glyph_info_t (cur())); |
|
|
|
|
|
|
|
|
|
|
|
out_len++; |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* Copies glyph at idx to output and advance idx.
|
|
|
|
/* Copies glyph at idx to output and advance idx.
|
|
|
|
* If there's no output, just advance idx. */ |
|
|
|
* If there's no output, just advance idx. */ |
|
|
|
bool next_glyph () |
|
|
|
bool next_glyph () |
|
|
|