[varLib.avarPlanner] Allow specifying frequencies on the cmdline

This commit is contained in:
Behdad Esfahbod 2023-07-23 15:37:55 -06:00
parent b860194235
commit da0c5be0e8

View File

@ -271,6 +271,14 @@ def main(args=None):
if options.glyphs is not None:
glyphs = options.glyphs.split()
if ":" in options.glyphs:
glyphs = {}
for g in options.glyphs.split():
if ":" in g:
glyph, frequency = g.split(":")
glyphs[glyph] = float(frequency)
else:
glyphs[g] = 1.0
else:
glyphs = None