demos/stdfonts/stdfonts.py
changeset 2967 ea62529bd1df
parent 2963 c414c0ab69e7
child 3617 ae5744e97c42
equal deleted inserted replaced
2966:c9df63ccabdf 2967:ea62529bd1df
     1 #Copyright ReportLab Europe Ltd. 2000-2004
     1 #Copyright ReportLab Europe Ltd. 2000-2008
     2 #see license.txt for license details
     2 #see license.txt for license details
     3 #history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/demos/stdfonts/stdfonts.py
       
     4 __version__=''' $Id$ '''
       
     5 __doc__="""
     3 __doc__="""
     6 This generates tables showing the 14 standard fonts in both
     4 This generates tables showing the 14 standard fonts in both
     7 WinAnsi and MacRoman encodings, and their character codes.
     5 WinAnsi and MacRoman encodings, and their character codes.
     8 Supply an argument of 'hex' or 'oct' to get code charts
     6 Supply an argument of 'hex' or 'oct' to get code charts
     9 in those encodings; octal is what you need for \\n escape
     7 in those encodings; octal is what you need for \\n escape
    10 sequences in Python literals.
     8 sequences in Python literals.
    11 
     9 
    12 usage: standardfonts.py [dec|hex|oct]
    10 usage: standardfonts.py [dec|hex|oct]
    13 """
    11 """
       
    12 __version__=''' $Id$ '''
    14 import sys
    13 import sys
    15 from reportlab.pdfbase import pdfmetrics
    14 from reportlab.pdfbase import pdfmetrics
    16 from reportlab.pdfgen import canvas
    15 from reportlab.pdfgen import canvas
    17 import string
    16 import string
    18 
    17