Skip to content

Commit

Permalink
more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
schriftgestalt committed Apr 30, 2024
1 parent 4c2461d commit 8ee7b4d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def drawTopOrBottom(self, bbox, defaultColor, zones, top, xHeight, italicAngle,
zoneEnd = zoneBegin + thisZone[1]
zoneBottom = min((zoneBegin, zoneEnd))
zoneTop = max((zoneBegin, zoneEnd))
if position <= zoneTop and position >= zoneBottom:
if zoneTop >= position >= zoneBottom:
drawColor = defaultColor

# set line attributes:
Expand Down Expand Up @@ -221,7 +221,7 @@ def drawHandleForNode(self, node):
# calculate handle size:
handleSizes = (5, 8, 12) # possible user settings
handleSizeIndex = Glyphs.handleSize # user choice in Glyphs > Preferences > User Preferences > Handle Size
handleSize = handleSizes[handleSizeIndex] * self.getScale()**-0.9 # scaled diameter
handleSize = handleSizes[handleSizeIndex] * self.getScale() ** -0.9 # scaled diameter

# offcurves are a little smaller:
if node.type == OFFCURVE:
Expand Down

0 comments on commit 8ee7b4d

Please sign in to comment.