[merge.cff] Fix error message

As noticed in https://github.com/fonttools/fonttools/issues/3175
This commit is contained in:
Behdad Esfahbod 2023-06-22 09:56:35 -06:00
parent 060b5f36bf
commit 978decb3a2

View File

@ -239,7 +239,7 @@ ttLib.getTableClass("gasp").mergeMap = lambda self, lst: first(
@add_method(ttLib.getTableClass("CFF "))
def merge(self, m, tables):
if any(hasattr(table, "FDSelect") for table in tables):
if any(hasattr(table.cff[0], "FDSelect") for table in tables):
raise NotImplementedError("Merging CID-keyed CFF tables is not supported yet")
for table in tables: