Package pyscript :: Module afm
[show private | hide private]
[frames | no frames]

Module pyscript.afm

Module for reading and writing AFM files.
Classes
AFM Class for handling Adobe Font Metric objects
ConvertAFM Convert Adobe Font Metrics

Exceptions
AFMError Class for handling errors

Function Summary
  load(fontname)
Loads the font of the given font name

Variable Summary
str __revision__ = '$Revision: 1.14 $'
SRE_Pattern charRE = (-?\d+)\s*;\s*WX\s+(\d+)\s*;\s*N\s+([\.A-Za-z0-...
SRE_Pattern componentRE = PCC\s+([\.A-Za-z0-9_]+)\s+(-?\d+)\s+(-?\d+...
SRE_Pattern compositeRE = ([\.A-Za-z0-9_]+)\s+(\d+)\s*;\s*
str FONTDIR = '/home/cochrane/sourceforge/pyscript/dist/pysc...
SRE_Pattern identifierRE = ^([A-Za-z]+).*
SRE_Pattern kernRE = ([\.A-Za-z0-9_]+)\s+([\.A-Za-z0-9_]+)\s+(-?\d+)...

Function Details

load(fontname)

Loads the font of the given font name
Parameters:
fontname - the name of the font to load
           (type=string)

Variable Details

__revision__

Type:
str
Value:
'$Revision: 1.14 $'                                                    

charRE

Type:
SRE_Pattern
Value:
(-?\d+)\s*;\s*WX\s+(\d+)\s*;\s*N\s+([\.A-Za-z0-9_]+)\s*;\s*B\s+(-?\d+)\
\s+(-?\d+)\s+(-?\d+)\s+(-?\d+)\s*;\s*                                  

componentRE

Type:
SRE_Pattern
Value:
PCC\s+([\.A-Za-z0-9_]+)\s+(-?\d+)\s+(-?\d+)\s*;\s*                     

compositeRE

Type:
SRE_Pattern
Value:
([\.A-Za-z0-9_]+)\s+(\d+)\s*;\s*                                       

FONTDIR

Type:
str
Value:
'/home/cochrane/sourceforge/pyscript/dist/pyscript-0.6/pyscript/fonts'\
                                                                       

identifierRE

Type:
SRE_Pattern
Value:
^([A-Za-z]+).*                                                         

kernRE

Type:
SRE_Pattern
Value:
([\.A-Za-z0-9_]+)\s+([\.A-Za-z0-9_]+)\s+(-?\d+)\s*                     

Generated by Epydoc 2.0 on Mon Apr 24 17:02:38 2006 http://epydoc.sf.net