Cosimo Lupo
b7bb391033
don't use sys.exit(...) inside main(), but only under if __name__ == "__main__"
...
The convention is that sys.exit(...) is called only if a module is run as a script,
and that main() entry points use return statements to report exit codes: 0 (or None)
for successful execution, or any non-zero integer for errors.
E.g. see the console scripts generated when installing with pip.
2017-01-11 12:10:58 +00:00
Behdad Esfahbod
4fc2a3e5e1
[varLib] Move code around
2016-09-27 19:49:41 +02:00
Behdad Esfahbod
938129b802
[varLib] Use string.ljust()
2016-09-27 19:49:41 +02:00
Behdad Esfahbod
2e350268a2
[varLib] Use models.normalizeLocation() in mutator
2016-09-27 19:49:41 +02:00
Behdad Esfahbod
d9ee2609be
[varLib] Move VariationModel and supporting code to fontTools.varLib.models
...
More code to be moved there in the future.
2016-09-27 19:49:41 +02:00
Behdad Esfahbod
4506796b32
Minor
2016-09-27 19:49:41 +02:00
Behdad Esfahbod
4d7b5f6472
[varLib] Start implementing VariationStore
2016-09-27 19:49:41 +02:00
Behdad Esfahbod
18e53dbdf5
[varLib] Minor
2016-05-12 13:40:14 +02:00
Behdad Esfahbod
da4d097234
[varLib.mutator] Add minimal docstring
2016-04-27 01:41:48 -07:00
Behdad Esfahbod
5fdd980564
[varLib.mutator] Remove copy-pasta comments
2016-04-27 01:40:46 -07:00
Behdad Esfahbod
3238b4270e
[varLib] Add mutator, which instantiates a variation font
...
Run, eg:
$ python mutator.py ./NotoSansArabic-GX.ttf wght=140 wdth=85
API to be cleaned up.
2016-04-27 01:30:59 -07:00