Changed paths:
M Lib/fontTools/ttLib/tables/otTables.py
M Tests/ttLib/tables/otTables_test.py
Log Message:
-----------
Give an actionable error when LookupList overflow is unrecoverable
When a LookupList -> Lookup offset overflows and every lookup is already an
Extension lookup, fixLookupOverFlows has nothing left to promote and silently
returned 0, so compile re-raised a bare OTLOffsetOverflowError with no
explanation. Log a clear, actionable message instead.
The log is guarded on overflowRecord.SubTableIndex is None so it only fires for
genuine LookupList -> Lookup overflows, not for the subtable-overflow fallback
path (where fixLookupOverFlows is re-tried with SubTableIndex set and the
"LookupList offset overflowed" wording would be misleading). The advice is also
conditioned on have_uharfbuzz: suggest installing uharfbuzz only when it isn't
already installed; otherwise suggest reducing the number of lookups.