mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-22 07:21:06 +01:00
Revert "Revert "[glyf] Optimize shape loading""
This reverts commit 164bd288cf.
This commit is contained in:
1 parent
164bd288cf
commit
7eac779abf
1 file changed
+2
-1
@@ -95,7 +95,8 @@ struct Glyph
|
||||
break;
|
||||
}
|
||||
case SIMPLE:
|
||||
if (unlikely (!SimpleGlyph (*header, bytes).get_contour_points (points, phantom_only)))
|
||||
/* 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)))
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user