Update Lib/fontTools/ttLib/tables/_g_l_y_f.py

Co-authored-by: Just van Rossum <justvanrossum@gmail.com>
This commit is contained in:
Behdad Esfahbod 2023-02-01 13:22:08 -07:00 committed by GitHub
parent b821141eb7
commit f205ba0f6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1161,7 +1161,7 @@ class Glyph(object):
return self.numberOfContours == -1
def isVarComposite(self):
"""Test whether a glyph has components"""
"""Test whether a glyph has variable components"""
if hasattr(self, "data"):
return struct.unpack(">h", self.data[:2])[0] == -2 if self.data else False
else: