Move code around
This commit is contained in:
parent
2fcbbdb41a
commit
0ccf9b6473
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue