Move code around
authorBehdad Esfahbod <behdad@behdad.org>
Wed, 29 Aug 2012 15:53:26 +0000 (11:53 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Wed, 29 Aug 2012 18:02:37 +0000 (14:02 -0400)
src/hb-ot-shape.cc

index 009a25d..473bc17 100644 (file)
@@ -317,6 +317,16 @@ hb_ot_map_glyphs_fast (hb_buffer_t  *buffer)
 }
 
 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)
 {
   if (c->plan->shaper->preprocess_text) {
@@ -341,17 +351,6 @@ hb_ot_substitute_default (hb_ot_shape_context_t *c)
 }
 
 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)
 {
   hb_ot_layout_substitute_start (c->font, c->buffer);