reportlab/demos/stdfonts/stdfonts.py
changeset 494 54257447cfe9
parent 459 642367b8c821
child 504 b70ec6bb4041
equal deleted inserted replaced
493:89dbc0b19ede 494:54257447cfe9
     1 ###############################################################################
     1 #copyright ReportLab Inc. 2000
     2 #
     2 #see license.txt for license details
     3 #	ReportLab Public License Version 1.0
     3 #history http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/reportlab/demos/stdfonts/stdfonts.py?cvsroot=reportlab
     4 #
     4 #$Header: /tmp/reportlab/reportlab/demos/stdfonts/stdfonts.py,v 1.7 2000/10/25 08:57:45 rgbecker Exp $
     5 #   Except for the change of names the spirit and intention of this
     5 __version__=''' $Id: stdfonts.py,v 1.7 2000/10/25 08:57:45 rgbecker Exp $ '''
     6 #   license is the same as that of Python
       
     7 #
       
     8 #	(C) Copyright ReportLab Inc. 1998-2000.
       
     9 #
       
    10 #
       
    11 # All Rights Reserved
       
    12 #
       
    13 # Permission to use, copy, modify, and distribute this software and its
       
    14 # documentation for any purpose and without fee is hereby granted, provided
       
    15 # that the above copyright notice appear in all copies and that both that
       
    16 # copyright notice and this permission notice appear in supporting
       
    17 # documentation, and that the name of ReportLab not be used
       
    18 # in advertising or publicity pertaining to distribution of the software
       
    19 # without specific, written prior permission. 
       
    20 # 
       
    21 #
       
    22 # Disclaimer
       
    23 #
       
    24 # ReportLab Inc. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
       
    25 # SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS,
       
    26 # IN NO EVENT SHALL ReportLab BE LIABLE FOR ANY SPECIAL, INDIRECT
       
    27 # OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
       
    28 # OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
       
    29 # OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
       
    30 # PERFORMANCE OF THIS SOFTWARE. 
       
    31 #
       
    32 ###############################################################################
       
    33 #	$Log: stdfonts.py,v $
       
    34 #	Revision 1.6  2000/09/25 12:33:33  andy_robinson
       
    35 #	Allows you to generate hex, decimal or octal labels
       
    36 #
       
    37 #	Revision 1.5  2000/04/28 17:33:44  andy_robinson
       
    38 #	Added font encoding support and changed default encoding to WinAnsi
       
    39 #	
       
    40 #	Revision 1.4  2000/02/17 02:06:28  rgbecker
       
    41 #	Docstring & other fixes
       
    42 #	
       
    43 #	Revision 1.3  2000/02/16 09:42:50  rgbecker
       
    44 #	Conversion to reportlab package
       
    45 #	
       
    46 #	Revision 1.2  2000/02/15 17:55:59  rgbecker
       
    47 #	License text fixes
       
    48 #	
       
    49 #	Revision 1.1.1.1  2000/02/15 15:15:57  rgbecker
       
    50 #	Initial setup of demos directory and contents.
       
    51 #	
       
    52 __version__=''' $Id: stdfonts.py,v 1.6 2000/09/25 12:33:33 andy_robinson Exp $ '''
       
    53 __doc__="""
     6 __doc__="""
    54 This generates tables showing the 14 standard fonts in both
     7 This generates tables showing the 14 standard fonts in both
    55 WinAnsi and MacRoman encodings, and their character codes.
     8 WinAnsi and MacRoman encodings, and their character codes.
    56 Supply an argument of 'hex' or 'oct' to get code charts
     9 Supply an argument of 'hex' or 'oct' to get code charts
    57 in those encodings; octal is what you need for \\n escape
    10 in those encodings; octal is what you need for \\n escape