mirror of
https://github.com/lalbornoz/roar.git
synced 2024-12-22 20:36:37 +00:00
DejaVuSansMono.ttf: added to repository for convenience.
mirc2png.py:main(): default fontFilePath to `DejaVuSansMono.ttf'.
This commit is contained in:
parent
abaa92b53d
commit
734cc19333
BIN
DejaVuSansMono.ttf
Normal file
BIN
DejaVuSansMono.ttf
Normal file
Binary file not shown.
12
mirc2png.py
12
mirc2png.py
@ -194,15 +194,15 @@ class MiRCART:
|
||||
|
||||
#
|
||||
# Entry point
|
||||
def main(argv0, inFilePath, imgFilePath, fontFilePath, fontSize=11):
|
||||
def main(argv0, inFilePath, imgFilePath, fontFilePath="DejaVuSansMono.ttf", fontSize=11):
|
||||
_MiRCART = MiRCART(inFilePath, imgFilePath, fontFilePath, fontSize)
|
||||
if __name__ == "__main__":
|
||||
if ((len(sys.argv) - 1) < 3)\
|
||||
if ((len(sys.argv) - 1) < 2)\
|
||||
or ((len(sys.argv) - 1) > 4):
|
||||
print("usage: {} " \
|
||||
"<MiRCART input file pathname> " \
|
||||
"<PNG image output file pathname> " \
|
||||
"<Font file pathnane> " \
|
||||
print("usage: {} " \
|
||||
"<MiRCART input file pathname> " \
|
||||
"<PNG image output file pathname> " \
|
||||
"[<Font file pathname; defaults to DejaVuSansMono.ttf>] " \
|
||||
"[<Font size; defaults to 11>]".format(sys.argv[0]), file=sys.stderr)
|
||||
else:
|
||||
main(*sys.argv)
|
||||
|
Loading…
Reference in New Issue
Block a user