Skip to content

Commit 9b5dc74

Browse files
committed
Don't check interpolation issues on VF without gvar table
1 parent a2dc9ad commit 9b5dc74

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Lib/fontbakery/checks/interpolation_issues.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from fontTools.varLib.interpolatableHelpers import InterpolatableProblem
55
from fontTools.varLib.models import piecewiseLinearMap
66

7-
from fontbakery.prelude import check, Message, PASS, WARN
7+
from fontbakery.prelude import PASS, SKIP, WARN, Message, check
88
from fontbakery.utils import bullet_list
99

1010

@@ -25,6 +25,9 @@
2525
)
2626
def check_interpolation_issues(ttFont, config):
2727
"""Detect any interpolation issues in the font."""
28+
if "gvar" not in ttFont:
29+
yield SKIP, Message("interpolation-issues", "The font has no gvar table.")
30+
return
2831

2932
gvar = ttFont["gvar"]
3033
# This code copied from fontTools.varLib.interpolatable

0 commit comments

Comments
 (0)