Comment to explain copy

This commit is contained in:
Simon Cozens 2020-11-17 09:13:30 +00:00
parent 8e524e41f5
commit 635df38f32

View File

@ -343,6 +343,8 @@ class ChainContextualBuilder(LookupBuilder):
w["LookupType"] = CountReference(
{"LookupType": st.LookupType}, "LookupType"
)
# We need to make a copy here because compiling
# modifies the subtable (finalizing formats etc.)
copy.deepcopy(st).compile(w, self.font)
size += len(w.getAllData())
return size