fontTools.afmLib (version $Id: afmLib.py,v 1.6 2003/05/24 12:50:47 jvr Exp $)
index
/home/mcfletch/pylive/fontTools/afmLib.py

Module for reading and writing AFM files.

 
Modules
       
re
string
types

 
Classes
       
Exception(BaseException)
error
AFM

 
class AFM
     Methods defined here:
__delattr__(self, attr)
__delitem__(self, key)
__getattr__(self, attr)
__getitem__(self, key)
__init__(self, path=None)
__repr__(self)
__setattr__(self, attr, value)
__setitem__(self, key, value)
addComment(self, comment)
addComposite(self, glyphName, components)
chars(self)
comments(self)
has_char(self, char)
has_kernpair(self, pair)
kernpairs(self)
parseattr(self, word, rest)
parsechar(self, rest)
parsecomposite(self, rest)
parsekernpair(self, rest)
read(self, path)
write(self, path, sep='\r')

 
class error(Exception)
    
Method resolution order:
error
Exception
BaseException
object

Data descriptors defined here:
__weakref__
list of weak references to the object (if defined)

Methods inherited from Exception:
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Data and other attributes inherited from Exception:
__new__ = <built-in method __new__ of type object at 0x8108c0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from BaseException:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]
 
Use of negative indices is not supported.
__reduce__(...)
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__setstate__(...)
__str__(...)
x.__str__() <==> str(x)
__unicode__(...)

Data descriptors inherited from BaseException:
__dict__
args
message

 
Functions
       
readlines(path)
writelines(path, lines, sep='\r')

 
Data
        __file__ = '/home/mcfletch/pylive/fontTools/afmLib.pyc'
__name__ = 'fontTools.afmLib'
__package__ = 'fontTools'
__version__ = '$Id: afmLib.py,v 1.6 2003/05/24 12:50:47 jvr Exp $'
charRE = <_sre.SRE_Pattern object at 0x4bfefe0>
componentRE = <_sre.SRE_Pattern object at 0x4bfe5c0>
compositeRE = <_sre.SRE_Pattern object at 0x4bfe850>
identifierRE = <_sre.SRE_Pattern object at 0x46e3618>
kernRE = <_sre.SRE_Pattern object at 0x4bc8130>
preferredAttributeOrder = ['FontName', 'FullName', 'FamilyName', 'Weight', 'ItalicAngle', 'IsFixedPitch', 'FontBBox', 'UnderlinePosition', 'UnderlineThickness', 'Version', 'Notice', 'EncodingScheme', 'CapHeight', 'XHeight', 'Ascender', 'Descender']