Revert "[glyf] Optimize shape loading"

This reverts commit f0819301b7.

Broke tests. To be debugged and redone.
This commit is contained in:
Behdad Esfahbod 2022-06-26 16:01:15 -06:00
parent f0819301b7
commit 164bd288cf
1 changed files with 1 additions and 2 deletions

View File

@ -95,8 +95,7 @@ struct Glyph
break;
}
case SIMPLE:
/* Load into all_points if it's empty, as an optimization. */
if (unlikely (!SimpleGlyph (*header, bytes).get_contour_points (all_points.length == 0 ? all_points : points, phantom_only)))
if (unlikely (!SimpleGlyph (*header, bytes).get_contour_points (points, phantom_only)))
return false;
break;
}