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

[aat] Set debug lookup_index

上级 38df1ec8
...@@ -713,6 +713,8 @@ struct hb_aat_apply_context_t : ...@@ -713,6 +713,8 @@ struct hb_aat_apply_context_t :
sanitizer.start_processing (); sanitizer.start_processing ();
} }
inline void set_lookup_index (unsigned int i) { lookup_index = i; }
inline ~hb_aat_apply_context_t (void) inline ~hb_aat_apply_context_t (void)
{ {
sanitizer.end_processing (); sanitizer.end_processing ();
......
...@@ -617,6 +617,8 @@ struct Chain ...@@ -617,6 +617,8 @@ struct Chain
{ {
subtable->apply (c); subtable->apply (c);
subtable = &StructAfter<ChainSubtable> (*subtable); subtable = &StructAfter<ChainSubtable> (*subtable);
c->set_lookup_index (c->lookup_index + 1);
} }
} }
...@@ -670,6 +672,7 @@ struct morx ...@@ -670,6 +672,7 @@ struct morx
inline void apply (hb_aat_apply_context_t *c) const inline void apply (hb_aat_apply_context_t *c) const
{ {
c->set_lookup_index (0);
const Chain *chain = chains; const Chain *chain = chains;
unsigned int count = chainCount; unsigned int count = chainCount;
for (unsigned int i = 0; i < count; i++) for (unsigned int i = 0; i < count; i++)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册