From e8d9fa331437592e26e8396f950f47dee06f0575 Mon Sep 17 00:00:00 2001 From: skef <6175836+skef@users.noreply.github.com> Date: Tue, 9 Jul 2024 13:36:18 -0700 Subject: [PATCH] Correct inequality in measuring adjacent BlueValue zones. (#1749) --- python/afdko/otfautohint/fdTools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/afdko/otfautohint/fdTools.py b/python/afdko/otfautohint/fdTools.py index ad964866f..88fbe0267 100644 --- a/python/afdko/otfautohint/fdTools.py +++ b/python/afdko/otfautohint/fdTools.py @@ -265,7 +265,7 @@ def buildBlueLists(self): "zone %s with the bottom at %s." % (self.DictName, prevPair[2], prevPair[0], pair[2], pair[1])) - elif abs(pair[1] - prevPair[0]) <= zoneBuffer: + elif abs(pair[1] - prevPair[0]) < zoneBuffer: raise FontInfoParseError( "In FDDict %s. The top of zone %s at %s is within " "the min separation limit (%s units) of zone %s " @@ -546,7 +546,7 @@ def mergeFDDicts(prevDictList): log.warning("For final FontDict, skipping zone %s in FDDict %s" " because it overlaps with zone %s in FDDict %s.", zoneName, fdDictName, prevZoneName, prevFDictName) - elif abs(zone[1] - prevZone[0]) <= zoneBuffer: + elif abs(zone[1] - prevZone[0]) < zoneBuffer: log.warning("For final FontDict, skipping zone %s in FDDict %s" " because it is within the minimum separation " "allowed (%s units) of %s in FDDict %s.",