Skip to content

Commit

Permalink
Merge pull request #366 from anthrotype/mute-underline-noise
Browse files Browse the repository at this point in the history
fontInfoData: demote warnings underline position/thickness not being set
  • Loading branch information
anthrotype authored Feb 26, 2020
2 parents 53dd7c6 + 79f8ee8 commit beb6a6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/ufo2ft/fontInfoData.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,13 +328,13 @@ def postscriptSlantAngleFallback(info):

def postscriptUnderlineThicknessFallback(info):
"""Return UPM * 0.05 (50 for 1000 UPM) and warn."""
logger.warning("Underline thickness not set in UFO, defaulting to UPM * 0.05")
logger.debug("Underline thickness not set in UFO, defaulting to UPM * 0.05")
return getAttrWithFallback(info, "unitsPerEm") * 0.05


def postscriptUnderlinePositionFallback(info):
"""Return UPM * -0.075 (-75 for 1000 UPM) and warn."""
logger.warning("Underline position not set in UFO, defaulting to UPM * -0.075")
logger.debug("Underline position not set in UFO, defaulting to UPM * -0.075")
return getAttrWithFallback(info, "unitsPerEm") * -0.075


Expand Down

0 comments on commit beb6a6c

Please sign in to comment.