API Reference for Enthought Tool Suite 2.7.1
XXX Kiva specific changes
defaultEncoding = 'WinAnsiEncoding'
PFB_ASCII = chr(1)
PFB_BINARY = chr(2)
PFB_EOF = chr(3)
PFB_MARKER = chr(128)
standardEncodings = _fontdata.standardEncodings
standardFonts = _fontdata.standardFonts
XXX Kiva specific changes
stringWidth = _slowStringWidth
Looks in all AFM files on path for face with given name.
Returns AFM file name or None. Ouch!
Lazily constructs known encodings if not found.
Lazily constructs known fonts if not found.
Names of the form 'face-encoding' will be built if face and encoding are known. Also if the name is just one of the standard 14, it will make up a font in the default encoding.
Lazily constructs known typefaces if not found.
Quick and dirty - gives back a top-level dictionary with top-level items, and a 'widths' key containing a dictionary of glyph names and widths. Just enough needed for embedding. A better parser would accept options for what data you wwanted, and preserve the order.
Registers a font, including setting up info for accelerated stringWidth
| Local name | Refers to |
|---|---|
| _fontdata | enthought.kiva._fontdata |
| ListType | types.ListType |
| os | os |
| string | string |
| TupleType | types.TupleType |
Copyright © 2002-2008 Enthought, Inc.