Revert "Revert "[glyf] Optimize shape loading""
This reverts commit 164bd288cf
.
This commit is contained in:
parent
164bd288cf
commit
7eac779abf
|
@ -95,7 +95,8 @@ struct Glyph
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case SIMPLE:
|
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;
|
return false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue