scripts/render_font.py: suppress console output

Don't print "Writing <file>" by default. Add --verbose option for this.

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
diff --git a/scripts/render_font.py b/scripts/render_font.py
index f49edf1..12c13e8 100755
--- a/scripts/render_font.py
+++ b/scripts/render_font.py
@@ -43,6 +43,8 @@
 			help='Name of font in program')
 	parser.add_argument('--out_dir', required=True, \
 			help='Out directory')
+	parser.add_argument('--verbose', default=False, \
+			help='Print informational messages')
 	return parser.parse_args()
 
 def c_hex_print(f, str):
@@ -79,7 +81,8 @@
 
 	img_ref = Image(width=1000, height=1000)
 
-	print "Writing " + out_dir + "/" + font_name + ".c"
+	if args.verbose:
+		print "Writing " + out_dir + "/" + font_name + ".c"
 	f = open(out_dir + "/" + font_name + ".c", 'wb+')
 	write_comment(f)
 	f.write("#include \"font.h\"\n\n")
@@ -132,7 +135,8 @@
 	f.write("};\n")
 	f.close()
 
-	print "Writing " + out_dir + "/" + font_name + ".h"
+	if args.verbose:
+		print "Writing " + out_dir + "/" + font_name + ".h"
 	f = open(out_dir + "/" + font_name + ".h", 'wb+')
 	write_comment(f)
 	f.write("#ifndef __" + font_name.upper() + "_H\n");