API Reference for Enthought Tool Suite 3.2.0
Defines the Kiva Font class and a utility method to parse free-form font specification strings into Font instances.
Various maps used by str_to_font
font_families = { Const('default') : Name('DEFAULT'), Const('decorative') : Name('DECORATIVE'), Const('roman') : Name('ROMAN'), Const('script') : Name('SCRIPT'), Const('swiss') : Name('SWISS'), Const('modern') : Name('MODERN') }
font_noise = [ 'pt', 'point', 'family' ]
font_styles = { Const('italic') : Name('ITALIC') }
font_weights = { Const('bold') : Name('BOLD') }
Converts a string specification of a font into a Font instance. string specifications are of the form: "modern 12", "9 roman italic", and so on.
| Local name | Refers to |
|---|---|
| BOLD | enthought.kiva.constants.BOLD |
| BOLD_ITALIC | enthought.kiva.constants.BOLD_ITALIC |
| copy | copy |
| DECORATIVE | enthought.kiva.constants.DECORATIVE |
| DEFAULT | enthought.kiva.constants.DEFAULT |
| fontManager | enthought.kiva.fonttools.font_manager.fontManager |
| FontProperties | enthought.kiva.fonttools.font_manager.FontProperties |
| ITALIC | enthought.kiva.constants.ITALIC |
| MODERN | enthought.kiva.constants.MODERN |
| NORMAL | enthought.kiva.constants.NORMAL |
| ROMAN | enthought.kiva.constants.ROMAN |
| SCRIPT | enthought.kiva.constants.SCRIPT |
| SWISS | enthought.kiva.constants.SWISS |
| TELETYPE | enthought.kiva.constants.TELETYPE |
© Copyright 2002-2009 Enthought, Inc.