mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-25 08:36:38 +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
|
# 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)
|
_MiRCART = MiRCART(inFilePath, imgFilePath, fontFilePath, fontSize)
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
if ((len(sys.argv) - 1) < 3)\
|
if ((len(sys.argv) - 1) < 2)\
|
||||||
or ((len(sys.argv) - 1) > 4):
|
or ((len(sys.argv) - 1) > 4):
|
||||||
print("usage: {} " \
|
print("usage: {} " \
|
||||||
"<MiRCART input file pathname> " \
|
"<MiRCART input file pathname> " \
|
||||||
"<PNG image output file pathname> " \
|
"<PNG image output file pathname> " \
|
||||||
"<Font file pathnane> " \
|
"[<Font file pathname; defaults to DejaVuSansMono.ttf>] " \
|
||||||
"[<Font size; defaults to 11>]".format(sys.argv[0]), file=sys.stderr)
|
"[<Font size; defaults to 11>]".format(sys.argv[0]), file=sys.stderr)
|
||||||
else:
|
else:
|
||||||
main(*sys.argv)
|
main(*sys.argv)
|
||||||
|
Loading…
Reference in New Issue
Block a user