Skip to content

Commit

Permalink
Correct inequality in measuring adjacent BlueValue zones. (#1749)
Browse files Browse the repository at this point in the history
  • Loading branch information
skef committed Jul 9, 2024
1 parent 8f47516 commit e8d9fa3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/afdko/otfautohint/fdTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down Expand Up @@ -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.",
Expand Down

0 comments on commit e8d9fa3

Please sign in to comment.