Bug 1624225 - Don't reject 'fvar' table in a variation font if no instance records are present, as the font is still valid. r=lsalzman

Differential Revision: https://phabricator.services.mozilla.com/D67785

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Jonathan Kew 2020-03-22 21:12:41 +00:00
parent 8f4191bc28
commit d68fbcd645

View File

@ -1812,7 +1812,6 @@ void gfxFontUtils::GetVariationData(
0 || // no axes?
// https://www.microsoft.com/typography/otspec/fvar.htm#axisSize
axisSize != 20 || // required value for current table version
instanceCount == 0 || // no instances?
// https://www.microsoft.com/typography/otspec/fvar.htm#instanceSize
(instanceSize != axisCount * sizeof(int32_t) + 4 &&
instanceSize != axisCount * sizeof(int32_t) + 6)) {