Skip to content

Commit c9da982

Browse files
committed
fix SVG table tag
1 parent e5a3267 commit c9da982

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Lib/fontbakery/profiles/googlefonts.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6166,22 +6166,22 @@ def com_google_fonts_check_colorfont_tables(ttFont):
61666166
"""Check font has the expected color font tables"""
61676167
if "COLR" in ttFont:
61686168
colr_table = ttFont["COLR"]
6169-
if colr_table.version == 0 and "SVG" in ttFont:
6169+
if colr_table.version == 0 and "SVG " in ttFont:
61706170
yield FAIL, Message(
61716171
"drop-svg",
61726172
"Font has a COLR v0 table, which is already widely supported, "
61736173
"so the SVG table isn't needed."
61746174
)
61756175
return
6176-
elif colr_table.version == 1 and "SVG" not in ttFont:
6176+
elif colr_table.version == 1 and "SVG " not in ttFont:
61776177
yield FAIL, Message(
61786178
"add-svg",
61796179
"Font has COLRv1 but no SVG table; for CORLv1, we require "
61806180
"that an SVG table is present to support environments where "
61816181
"the former is not supported yet."
61826182
)
61836183
return
6184-
elif "SVG" in ttFont:
6184+
elif "SVG " in ttFont:
61856185
if "COLR" not in ttFont:
61866186
yield FAIL, Message(
61876187
"add-colr",

0 commit comments

Comments
 (0)