提交 bbc7a99d 编写于 作者: B Behdad Esfahbod

Move mirroring around a bit

上级 bd098738
......@@ -351,7 +351,6 @@ hb_substitute_default (hb_font_t *font,
hb_feature_t *features HB_UNUSED,
unsigned int num_features HB_UNUSED)
{
hb_mirror_chars (buffer);
hb_map_glyphs (font, face, buffer);
}
......@@ -445,12 +444,13 @@ hb_ot_shape (hb_font_t *font,
buffer->clear_masks ();
hb_substitute_default (font, face, buffer, features, num_features);
/* Mirroring needs to see the original direction */
hb_mirror_chars (buffer);
/* We do this after substitute_default because mirroring needs to
* see the original direction. */
original_direction = hb_ensure_native_direction (buffer);
hb_substitute_default (font, face, buffer, features, num_features);
substitute_fallback = !hb_ot_substitute_complex (font, face, buffer, features, num_features, original_direction);
if (substitute_fallback)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册