From 0ccf9b64736559a230425fd131c9eb8aa3048221 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 29 Aug 2012 11:53:26 -0400 Subject: [PATCH] Move code around --- src/hb-ot-shape.cc | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/hb-ot-shape.cc b/src/hb-ot-shape.cc index 009a25de1..473bc177b 100644 --- a/src/hb-ot-shape.cc +++ b/src/hb-ot-shape.cc @@ -316,6 +316,16 @@ hb_ot_map_glyphs_fast (hb_buffer_t *buffer) buffer->info[i].codepoint = buffer->info[i].glyph_index(); } +static inline void +hb_synthesize_glyph_classes (hb_ot_shape_context_t *c) +{ + unsigned int count = c->buffer->len; + for (unsigned int i = 0; i < count; i++) + c->buffer->info[i].glyph_props() = _hb_glyph_info_get_general_category (&c->buffer->info[i]) == HB_UNICODE_GENERAL_CATEGORY_NON_SPACING_MARK ? + HB_OT_LAYOUT_GLYPH_CLASS_MARK : + HB_OT_LAYOUT_GLYPH_CLASS_BASE_GLYPH; +} + static inline void hb_ot_substitute_default (hb_ot_shape_context_t *c) { @@ -340,17 +350,6 @@ hb_ot_substitute_default (hb_ot_shape_context_t *c) HB_BUFFER_DEALLOCATE_VAR (c->buffer, glyph_index); } -static inline void -hb_synthesize_glyph_classes (hb_ot_shape_context_t *c) -{ - unsigned int count = c->buffer->len; - for (unsigned int i = 0; i < count; i++) - c->buffer->info[i].glyph_props() = _hb_glyph_info_get_general_category (&c->buffer->info[i]) == HB_UNICODE_GENERAL_CATEGORY_NON_SPACING_MARK ? - HB_OT_LAYOUT_GLYPH_CLASS_MARK : - HB_OT_LAYOUT_GLYPH_CLASS_BASE_GLYPH; -} - - static inline void hb_ot_substitute_complex (hb_ot_shape_context_t *c) {