From 9d8a7e27fe20d315b7dd694ae27dd7fbd50d8fc9 Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Thu, 21 May 2020 16:57:35 +0100 Subject: [PATCH] [COLR] should set self.version after decompiling COLRv1 we set self.version for COLRv0 already; makes easier to check COLR.version --- Lib/fontTools/ttLib/tables/C_O_L_R_.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/fontTools/ttLib/tables/C_O_L_R_.py b/Lib/fontTools/ttLib/tables/C_O_L_R_.py index 2366c5e63..7a9442ded 100644 --- a/Lib/fontTools/ttLib/tables/C_O_L_R_.py +++ b/Lib/fontTools/ttLib/tables/C_O_L_R_.py @@ -66,6 +66,7 @@ class table_C_O_L_R_(DefaultTable.DefaultTable): else: # for new versions, keep the raw otTables around self.table = table + self.version = table.Version def compile(self, ttFont): from .otBase import OTTableWriter