Skip to content

Commit

Permalink
Fix the default of skip_monospace_ascii
Browse files Browse the repository at this point in the history
The previous fix supported the Python API but failed to fix the command
line. This patch fixes the command line options too.
  • Loading branch information
kojiishi committed Jul 28, 2021
1 parent 8aa2067 commit 417b788
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions east_asian_spacing/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@ async def main():
help="language if the font is language-specific,"
" or a comma separated list of languages"
" for a font collection (TTC)")
parser.add_argument("--monospace",
parser.add_argument("--no-monospace",
action="store_true",
help="add the features to monospace fonts")
help="Skips adding the features to monospace fonts")
parser.add_argument("-o",
"--output",
default="build",
Expand Down Expand Up @@ -267,7 +267,8 @@ async def main():
if args.language:
assert ',' not in args.language
config = config.for_language(args.language)
config = config.with_skip_monospace_ascii(not args.monospace)
if args.no_monospace:
config = config.with_skip_monospace_ascii(True)

builder = Builder(font, config)
await builder.build()
Expand Down

0 comments on commit 417b788

Please sign in to comment.