debian-defaults.diff 1.74 KB
Newer Older
1 2 3
Description: Debian figlet defaults.
 Change defaults to be toilet-compatible (font: future), and set the fontdir to
 the location of figlet fonts in debian: /usr/share/figlet
Stefano Rivera's avatar
Stefano Rivera committed
4 5 6
Author: Stefano Rivera <stefanor@debian.org>
Forwarded: https://github.com/pwaller/pyfiglet/pull/2
Last-Update: 2010-02-05
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49

--- a/pyfiglet.py
+++ b/pyfiglet.py
@@ -53,7 +53,7 @@
 meta-data about how it should be displayed by default
 """
 class FigletFont(object):
-	def __init__(self, dir='.', font='standard'):
+	def __init__(self, dir='.', font='future'):
 		self.dir = dir
 		self.font = font
 
@@ -224,7 +224,7 @@
 Use this Font class if it exists inside of a zipfile.
 """
 class ZippedFigletFont(FigletFont):
-	def __init__(self, dir='.', font='standard', zipfile='fonts.zip'):
+	def __init__(self, dir='.', font='future', zipfile='fonts.zip'):
 		self.zipfile = zipfile
 		FigletFont.__init__(self, dir=dir, font=font)
 
@@ -462,7 +462,7 @@
 Main figlet class.
 """
 class Figlet(object):
-	def __init__(self, dir=None, zipfile=None, font='standard', direction='auto', justify='auto', width=80):
+	def __init__(self, dir=None, zipfile=None, font='future', direction='auto', justify='auto', width=80):
 		self.dir = dir
 		self.font = font
 		self._direction = direction
@@ -540,10 +540,10 @@
 
 	parser = OptionParser(version=__version__, usage='%prog [options] text..')
 
-	parser.add_option(	'-f', '--font', default='standard',
+	parser.add_option(	'-f', '--font', default='future',
 				help='font to render with (default: %default)', metavar='FONT' )
 
-	parser.add_option(	'-d', '--fontdir', default=None,
+	parser.add_option(	'-d', '--fontdir', default='/usr/share/figlet',
 				help='location of font files', metavar='DIR' )
 
 	parser.add_option(	'-z', '--zipfile', default=dir+'/fonts.zip',