Skip to content

Commit

Permalink
Merge pull request #1361 from felipesanches/issue_1357
Browse files Browse the repository at this point in the history
Add a -n / --no-progress switch for disabling the progressbar ...
  • Loading branch information
felipesanches authored May 22, 2017
2 parents 84123e9 + 4fc4d49 commit 6fd8ab2
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,33 @@ For check results in GitHub Markdown syntax you can use --ghm:

fontbakery check-ttf --verbose *.ttf --ghm


The full set of attributes for the check-ttf subcommand is:

```
usage: fontbakery-check-ttf.py [-h] [-v] [-e] [-a] [-b] [-j] [-m] [-n]
[--coverage | --no-coverage]
arg_filepaths [arg_filepaths ...]
Check TTF files for common issues.
positional arguments:
arg_filepaths font file path(s) to check. Wildcards like *.ttf are
allowed.
optional arguments:
-h, --help show this help message and exit
-v, --verbose
-e, --error Output only errors.
-a, --autofix
-b, --burndown Compute and output burndown-chart stats in JSON format.
-j, --json Output check results in JSON format.
-m, --ghm Output check results in GitHub Markdown format.
-n, --no-progress Disables the display of a progress bar.
--coverage Run glyph coverage checks using PyFontaine.
--no-coverage Disable all PyFontaine (glyph coverage) checks.
```

### FontBakery web Dashboard

There is a web dashboard that is used for monitoring the check-results of the full Google Fonts collection (or possibly other collections of font families). This tool was initialy developed in this repository, but later it was split out into its own git repo, now available at: https://github.com/googlefonts/fontbakery-dashboard
Expand Down
6 changes: 5 additions & 1 deletion bin/fontbakery-check-ttf.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ def fontbakery_check_ttf(config):
elif config['verbose'] >= 2:
logger.setLevel(logging.DEBUG)
else:
fb.progressbar = True
if args.progress:
fb.progressbar = True
logger.setLevel(logging.CRITICAL)

if config['error']:
Expand Down Expand Up @@ -501,6 +502,9 @@ def fontbakery_check_ttf(config):
help='Output check results in JSON format.')
parser.add_argument('-m', '--ghm', action='store_true',
help='Output check results in GitHub Markdown format.')
parser.add_argument('-n', '--no-progress', action='store_false',
dest='progress',
help='Disables the display of a progress bar.')
pyfontaine_parser = parser.add_mutually_exclusive_group(required=False)
pyfontaine_parser.add_argument('--coverage',
help='Run glyph coverage checks'
Expand Down

0 comments on commit 6fd8ab2

Please sign in to comment.