зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
8f4191bc28
Коммит
d68fbcd645
|
@ -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)) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче