提交 03058c3d 编写于 作者: B Behdad Esfahbod

[otlayout] Remove two unused HB_OT_LAYOUT_GLYPH_PROPS_* values

上级 941b6992
......@@ -391,7 +391,6 @@ struct GDEF
default: return 0;
case BaseGlyph: return HB_OT_LAYOUT_GLYPH_PROPS_BASE_GLYPH;
case LigatureGlyph: return HB_OT_LAYOUT_GLYPH_PROPS_LIGATURE;
case ComponentGlyph: return HB_OT_LAYOUT_GLYPH_PROPS_COMPONENT;
case MarkGlyph:
klass = get_mark_attachment_type (glyph);
return HB_OT_LAYOUT_GLYPH_PROPS_MARK | (klass << 8);
......
......@@ -292,7 +292,8 @@ struct Sequence
if (unlikely (!substitute.len)) return TRACE_RETURN (false);
unsigned int klass = c->buffer->cur().glyph_props() &
HB_OT_LAYOUT_GLYPH_PROPS_LIGATURE ? HB_OT_LAYOUT_GLYPH_PROPS_BASE_GLYPH : 0;
HB_OT_LAYOUT_GLYPH_PROPS_LIGATURE ?
HB_OT_LAYOUT_GLYPH_PROPS_BASE_GLYPH : 0;
unsigned int count = substitute.len;
if (count == 1) /* Special-case to make it in-place. */
{
......
......@@ -121,10 +121,13 @@ _hb_glyph_info_flip_joiners (hb_glyph_info_t *info)
*/
typedef enum {
/* One bit available here... = 0x01u */
/* The following three match LookupFlags::Ignore* numbers. */
HB_OT_LAYOUT_GLYPH_PROPS_BASE_GLYPH = 0x02u,
HB_OT_LAYOUT_GLYPH_PROPS_LIGATURE = 0x04u,
HB_OT_LAYOUT_GLYPH_PROPS_MARK = 0x08u,
HB_OT_LAYOUT_GLYPH_PROPS_COMPONENT = 0x10u, /* Unused; can be removed. */
HB_OT_LAYOUT_GLYPH_PROPS_MARK = 0x08u
} hb_ot_layout_glyph_class_mask_t;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册