提交 2fca1426 编写于 作者: B Behdad Esfahbod

[GSUB] Don't erase glyph classes if GDEF does not have glyph classes

上级 fd42257f
......@@ -231,7 +231,10 @@ struct hb_apply_context_t
inline void set_klass_guess (unsigned int klass_guess) const
{
buffer->cur().props_cache() = has_glyph_classes ? 0 : klass_guess;
if (likely (has_glyph_classes))
buffer->cur().props_cache() = 0;
else if (klass_guess)
buffer->cur().props_cache() = klass_guess;
}
inline void output_glyph (hb_codepoint_t glyph_index,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册