[layout] Minor
This commit is contained in:
parent
b9d3f60520
commit
bd047d3b7f
|
@ -1418,6 +1418,12 @@ struct PosLookup : Lookup
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline bool apply (hb_apply_context_t *c) const
|
||||||
|
{
|
||||||
|
TRACE_APPLY (this);
|
||||||
|
return TRACE_RETURN (dispatch (c));
|
||||||
|
}
|
||||||
|
|
||||||
inline hb_collect_glyphs_context_t::return_t collect_glyphs (hb_collect_glyphs_context_t *c) const
|
inline hb_collect_glyphs_context_t::return_t collect_glyphs (hb_collect_glyphs_context_t *c) const
|
||||||
{
|
{
|
||||||
TRACE_COLLECT_GLYPHS (this);
|
TRACE_COLLECT_GLYPHS (this);
|
||||||
|
|
|
@ -1117,6 +1117,12 @@ struct SubstLookup : Lookup
|
||||||
return lookup_type_is_reverse (type);
|
return lookup_type_is_reverse (type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline bool apply (hb_apply_context_t *c) const
|
||||||
|
{
|
||||||
|
TRACE_APPLY (this);
|
||||||
|
return TRACE_RETURN (dispatch (c));
|
||||||
|
}
|
||||||
|
|
||||||
inline hb_closure_context_t::return_t closure (hb_closure_context_t *c) const
|
inline hb_closure_context_t::return_t closure (hb_closure_context_t *c) const
|
||||||
{
|
{
|
||||||
TRACE_CLOSURE (this);
|
TRACE_CLOSURE (this);
|
||||||
|
|
|
@ -855,7 +855,7 @@ apply_string (OT::hb_apply_context_t *c,
|
||||||
if (accel.may_have (buffer->cur().codepoint) &&
|
if (accel.may_have (buffer->cur().codepoint) &&
|
||||||
(buffer->cur().mask & c->lookup_mask) &&
|
(buffer->cur().mask & c->lookup_mask) &&
|
||||||
c->check_glyph_property (&c->buffer->cur(), c->lookup_props) &&
|
c->check_glyph_property (&c->buffer->cur(), c->lookup_props) &&
|
||||||
lookup.dispatch (c))
|
lookup.apply (c))
|
||||||
ret = true;
|
ret = true;
|
||||||
else
|
else
|
||||||
buffer->next_glyph ();
|
buffer->next_glyph ();
|
||||||
|
@ -879,7 +879,7 @@ apply_string (OT::hb_apply_context_t *c,
|
||||||
if (accel.may_have (buffer->cur().codepoint) &&
|
if (accel.may_have (buffer->cur().codepoint) &&
|
||||||
(buffer->cur().mask & c->lookup_mask) &&
|
(buffer->cur().mask & c->lookup_mask) &&
|
||||||
c->check_glyph_property (&c->buffer->cur(), c->lookup_props) &&
|
c->check_glyph_property (&c->buffer->cur(), c->lookup_props) &&
|
||||||
lookup.dispatch (c))
|
lookup.apply (c))
|
||||||
ret = true;
|
ret = true;
|
||||||
/* The reverse lookup doesn't "advance" cursor (for good reason). */
|
/* The reverse lookup doesn't "advance" cursor (for good reason). */
|
||||||
buffer->idx--;
|
buffer->idx--;
|
||||||
|
|
Loading…
Reference in New Issue