Revert "[glyf] Optimize shape loading"

This reverts commit f0819301b7.

Broke tests. To be debugged and redone.
This commit is contained in:
Behdad Esfahbod committed 2022-06-26 16:01:15 -06:00
1 parent f0819301b7
commit 164bd288cf
1 file changed
+1 -2
+1 -2
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;
}