From 164bd288cfe66f1742183ab38fa9bd121b1cd8a0 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 26 Jun 2022 16:01:15 -0600 Subject: [PATCH] Revert "[glyf] Optimize shape loading" This reverts commit f0819301b74871c4c0a58e16918d3f8df2c6f74d. Broke tests. To be debugged and redone. --- src/OT/glyf/Glyph.hh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/OT/glyf/Glyph.hh b/src/OT/glyf/Glyph.hh index 1dd2338a9..2bb7984f7 100644 --- a/src/OT/glyf/Glyph.hh +++ b/src/OT/glyf/Glyph.hh @@ -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; }