diff --git a/src/hb-buffer-private.hh b/src/hb-buffer-private.hh index 91e75600f..9fa1e4b60 100644 --- a/src/hb-buffer-private.hh +++ b/src/hb-buffer-private.hh @@ -156,7 +156,21 @@ struct hb_buffer_t { HB_INTERNAL void copy_glyph (void); /* Copies glyph at idx to output and advance idx. * If there's no output, just advance idx. */ - HB_INTERNAL void next_glyph (void); + inline void + next_glyph (void) + { + if (have_output) + { + if (unlikely (out_info != info || out_len != idx)) { + if (unlikely (!make_room_for (1, 1))) return; + out_info[out_len] = info[idx]; + } + out_len++; + } + + idx++; + } + /* Advance idx without copying to output. */ inline void skip_glyph (void) { idx++; } diff --git a/src/hb-buffer.cc b/src/hb-buffer.cc index e9bb15eae..3f039d0e0 100644 --- a/src/hb-buffer.cc +++ b/src/hb-buffer.cc @@ -290,21 +290,6 @@ hb_buffer_t::replace_glyph (hb_codepoint_t glyph_index) out_len++; } -void -hb_buffer_t::next_glyph (void) -{ - if (have_output) - { - if (unlikely (out_info != info || out_len != idx)) { - if (unlikely (!make_room_for (1, 1))) return; - out_info[out_len] = info[idx]; - } - out_len++; - } - - idx++; -} - void hb_buffer_t::set_masks (hb_mask_t value,