Skip to content

Commit

Permalink
Merge pull request #155 from moyogo/head-round-values
Browse files Browse the repository at this point in the history
outlineCompiler: round head values that may be float in UFO
  • Loading branch information
anthrotype authored Sep 8, 2017
2 parents f4bac6b + a33d885 commit fe3befa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Lib/ufo2ft/outlineCompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,10 @@ def setupTable_head(self):

# bounding box
xMin, yMin, xMax, yMax = self.fontBoundingBox
head.xMin = xMin
head.yMin = yMin
head.xMax = xMax
head.yMax = yMax
head.xMin = round(xMin)
head.yMin = round(yMin)
head.xMax = round(xMax)
head.yMax = round(yMax)

# style mapping
styleMapStyleName = getAttrWithFallback(font.info, "styleMapStyleName")
Expand Down

0 comments on commit fe3befa

Please sign in to comment.