The logic should attempt to build a cvar table only if there is a glyf table. This stack dumps when the font is a CFF2 font.
if __name__ == "__main__"