Remove font-dependent ASCII-only perf hack

Is confusing.  I already hit it myself.  Remove.  We can optimize
ASCII based on Unicode properties.  But should not do based on
assumptions on the font.
This commit is contained in:
Behdad Esfahbod 2016-02-11 12:14:27 +07:00
parent 3fe0cf1040
commit 660c9d3fc2

View File

@ -618,10 +618,6 @@ zero_mark_width (hb_glyph_position_t *pos)
static inline void
zero_mark_widths_by_gdef (hb_buffer_t *buffer, bool adjust_offsets)
{
/* This one is a hack; Technically GDEF can mark ASCII glyphs as marks, but we don't listen. */
if (!(buffer->scratch_flags & HB_BUFFER_SCRATCH_FLAG_HAS_NON_ASCII))
return;
unsigned int count = buffer->len;
hb_glyph_info_t *info = buffer->info;
for (unsigned int i = 0; i < count; i++)