[glyf] minor
This commit is contained in:
parent
f06d7331e8
commit
0c1561894a
|
@ -274,7 +274,7 @@ struct glyf
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
void change_glyph_index (hb_codepoint_t new_gid) { glyphIndex = new_gid; }
|
void set_glyph_index (hb_codepoint_t new_gid) { glyphIndex = new_gid; }
|
||||||
hb_codepoint_t get_glyph_index () const { return glyphIndex; }
|
hb_codepoint_t get_glyph_index () const { return glyphIndex; }
|
||||||
|
|
||||||
void drop_instructions_flag () { flags = (uint16_t) flags & ~WE_HAVE_INSTRUCTIONS; }
|
void drop_instructions_flag () { flags = (uint16_t) flags & ~WE_HAVE_INSTRUCTIONS; }
|
||||||
|
@ -1224,7 +1224,7 @@ struct glyf
|
||||||
{
|
{
|
||||||
hb_codepoint_t new_gid;
|
hb_codepoint_t new_gid;
|
||||||
if (plan->new_gid_for_old_gid (_.get_glyph_index (), &new_gid))
|
if (plan->new_gid_for_old_gid (_.get_glyph_index (), &new_gid))
|
||||||
const_cast<CompositeGlyphChain &> (_).change_glyph_index (new_gid);
|
const_cast<CompositeGlyphChain &> (_).set_glyph_index (new_gid);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (plan->drop_hints) Glyph (dest_glyph).drop_hints ();
|
if (plan->drop_hints) Glyph (dest_glyph).drop_hints ();
|
||||||
|
|
Loading…
Reference in New Issue