Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct inequality in measuring adjacent BlueValue zones. #1749

Merged
merged 1 commit into from
Jul 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading