This commit is contained in:
Behdad Esfahbod 2012-08-02 03:45:53 -04:00
parent e2b8d75fa6
commit 6c459c8fef
3 changed files with 5 additions and 5 deletions

View File

@ -1543,7 +1543,7 @@ struct PosLookup : Lookup
while (c->buffer->idx < c->buffer->len) while (c->buffer->idx < c->buffer->len)
{ {
if ((c->buffer->cur().mask & c->lookup_mask) && if ((c->buffer->cur().mask & c->lookup_mask) &&
c->digest->may_have (c->buffer->cur().codepoint) && c->digest.may_have (c->buffer->cur().codepoint) &&
apply_once (c)) apply_once (c))
ret = true; ret = true;
else else

View File

@ -1211,7 +1211,7 @@ struct SubstLookup : Lookup
while (c->buffer->idx < c->buffer->len) while (c->buffer->idx < c->buffer->len)
{ {
if ((c->buffer->cur().mask & c->lookup_mask) && if ((c->buffer->cur().mask & c->lookup_mask) &&
c->digest->may_have (c->buffer->cur().codepoint) && c->digest.may_have (c->buffer->cur().codepoint) &&
apply_once (c)) apply_once (c))
ret = true; ret = true;
else else
@ -1227,7 +1227,7 @@ struct SubstLookup : Lookup
do do
{ {
if ((c->buffer->cur().mask & c->lookup_mask) && if ((c->buffer->cur().mask & c->lookup_mask) &&
c->digest->may_have (c->buffer->cur().codepoint) && c->digest.may_have (c->buffer->cur().codepoint) &&
apply_once (c)) apply_once (c))
ret = true; ret = true;
else else

View File

@ -110,7 +110,7 @@ struct hb_apply_context_t
unsigned int debug_depth; unsigned int debug_depth;
const GDEF &gdef; const GDEF &gdef;
bool has_glyph_classes; bool has_glyph_classes;
const hb_set_digest_t *digest; const hb_set_digest_t digest;
hb_apply_context_t (hb_font_t *font_, hb_apply_context_t (hb_font_t *font_,
@ -127,7 +127,7 @@ struct hb_apply_context_t
!HB_SHAPER_DATA_IS_INVALID (hb_ot_layout_from_face (face_)) ? !HB_SHAPER_DATA_IS_INVALID (hb_ot_layout_from_face (face_)) ?
*hb_ot_layout_from_face (face_)->gdef : Null(GDEF)), *hb_ot_layout_from_face (face_)->gdef : Null(GDEF)),
has_glyph_classes (gdef.has_glyph_classes ()), has_glyph_classes (gdef.has_glyph_classes ()),
digest (digest_) {} digest (*digest_) {}
void set_lookup (const Lookup &l) { void set_lookup (const Lookup &l) {
lookup_props = l.get_props (); lookup_props = l.get_props ();