Commits

anatoly techtonik committed 2658bf1

Change standalone behavior to list font one string per line.

Comments (0)

Files changed (1)

 
 
 if __name__ == '__main__':
+  for f in font_list():
+    print(f)
   if DEBUG:
-    for f in font_list():
-      print(f)
-    print("Total: %s" % len(names))
+    print("Total: %s" % len(font_list()))
 
-  print('Have font "Arial"? %s' % have_font('Arial'))
-  print('Have font "missing-one"? %s' % have_font('missing-one'))
+  if DEBUG:
+    print('Have font "Arial"? %s' % have_font('Arial'))
+    print('Have font "missing-one"? %s' % have_font('missing-one'))
+