Commit e02be528 authored by Stefano Rivera's avatar Stefano Rivera

Patch debian install-locations as defaults

parent 85993ed7
Description: Change defaults to be toilet-compatible (font: future), and set
the fontdir to the location of figlet fonts in debian: /usr/share/figlet
Author: Stefano Rivera <>
Forwarded: not-needed
Last-Update: 2010-01-25
--- a/
+++ b/
@@ -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=''):
+ def __init__(self, dir='.', font='future', zipfile=''):
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+'/',
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment