reportlab/pdfbase/pdfmetrics.py
changeset 494 54257447cfe9
parent 474 5c5a9505fba1
child 502 3a9547186146
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/pdfbase/pdfmetrics.py?cvsroot=reportlab
     4 #
     4 #$Header: /tmp/reportlab/reportlab/pdfbase/pdfmetrics.py,v 1.14 2000/10/25 08:57:45 rgbecker Exp $
     5 #	Except for the change of names the spirit and intention of this
     5 __version__=''' $Id: pdfmetrics.py,v 1.14 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: pdfmetrics.py,v $
       
    34 #	Revision 1.13  2000/10/05 14:59:04  rgbecker
       
    35 #	Changes to make freezing easier
       
    36 #
       
    37 #	Revision 1.12  2000/09/27 21:56:01  andy_robinson
       
    38 #	more work on metrics and encodings for custom fonts
       
    39 #	
       
    40 #	Revision 1.11  2000/09/27 19:57:48  andy_robinson
       
    41 #	Begun work on loading new AFM files
       
    42 #	
       
    43 #	Revision 1.10  2000/08/16 07:44:53  rgbecker
       
    44 #	Start using _rl_accel
       
    45 #	
       
    46 #	Revision 1.9  2000/08/01 10:56:24  rgbecker
       
    47 #	moved accelerators to lib
       
    48 #	
       
    49 #	Revision 1.8  2000/07/26 12:01:10  rgbecker
       
    50 #	Accelerator rearrangements
       
    51 #	
       
    52 #	Revision 1.7  2000/07/19 19:06:39  rgbecker
       
    53 #	Added _pdfmetrics.c
       
    54 #	
       
    55 #	Revision 1.6  2000/06/26 15:58:22  rgbecker
       
    56 #	Simple fix to widths problem
       
    57 #	
       
    58 #	Revision 1.5  2000/04/12 16:24:35  rgbecker
       
    59 #	XML Tagged Paragraph parser changes
       
    60 #
       
    61 #	Revision 1.4  2000/02/17 02:07:23  rgbecker
       
    62 #	Docstring & other fixes
       
    63 #	
       
    64 #	Revision 1.3  2000/02/15 17:55:59  rgbecker
       
    65 #	License text fixes
       
    66 #	
       
    67 #	Revision 1.2  2000/02/15 15:47:09  rgbecker
       
    68 #	Added license, __version__ and Logi comment
       
    69 #	
       
    70 __version__=''' $Id: pdfmetrics.py,v 1.13 2000/10/05 14:59:04 rgbecker Exp $ '''
       
    71 __doc__="""This contains pre-canned text metrics for the PDFgen package, and may also
     6 __doc__="""This contains pre-canned text metrics for the PDFgen package, and may also
    72 be used for any other PIDDLE back ends or packages which use the standard
     7 be used for any other PIDDLE back ends or packages which use the standard
    73 Type 1 postscript fonts.
     8 Type 1 postscript fonts.
    74 
     9 
    75 Its main function is to let you work out the width of strings; it exposes a 
    10 Its main function is to let you work out the width of strings; it exposes a