How to use the fontbakery.constants.RED_STR.format function in fontbakery

To help you get started, we’ve selected a few fontbakery examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github googlefonts / fontbakery / Lib / fontbakery / fbchecklogger.py View on Github external
def update_progressbar(self):
    tick = {
      "OK": GREEN_STR.format('.'),
      "HOTFIX": BLUE_STR.format('H'),
      "ERROR": RED_STR.format('E'),
      "WARNING": YELLOW_STR.format('W'),
      "SKIP": WHITE_STR.format('S'),
      "INFO": CYAN_STR.format('I'),
      "unknown": RED_STR.format('?')
    }
    if self.progressbar is False:
      return
    else:
      print(tick[self.current_check["result"]], end='')
      sys.stdout.flush()
github googlefonts / fontbakery / Lib / fontbakery / fbchecklogger.py View on Github external
def update_progressbar(self):
    tick = {
      "OK": GREEN_STR.format('.'),
      "HOTFIX": BLUE_STR.format('H'),
      "ERROR": RED_STR.format('E'),
      "WARNING": YELLOW_STR.format('W'),
      "SKIP": WHITE_STR.format('S'),
      "INFO": CYAN_STR.format('I'),
      "unknown": RED_STR.format('?')
    }
    if self.progressbar is False:
      return
    else:
      print(tick[self.current_check["result"]], end='')
      sys.stdout.flush()