@header@
 
 
matplotlib.fontconfig_pattern
index
/home/jdhunter/dev/lib/python2.5/site-packages/matplotlib/fontconfig_pattern.py

A module for parsing a fontconfig pattern.
 
This class is defined here because it must be available in:
  - The old-style config framework (rcsetup.py)
  - The traits-based config framework (mpltraits.py)
  - The font manager (font_manager.py)
 
It probably logically belongs in font_manager.py, but
placing it in any of these places would have created cyclical
dependency problems, or an undesired dependency on traits even
when the traits-based config framework is not used.
 
See here for a rough specification of these patterns:
http://www.fontconfig.org/fontconfig-user.html
 
Author : Michael Droettboom <mdroe@stsci.edu>
License   : matplotlib license (PSF compatible)

 
Modules
       
re

 
Classes
       
FontconfigPatternParser

 
class FontconfigPatternParser
    A simple pyparsing-based parser for fontconfig-style patterns.
 
See here for a rough specification of these patterns:
http://www.fontconfig.org/fontconfig-user.html
 
  Methods defined here:
__init__(self)
parse(self, pattern)

 
Functions
       
family_escape = sub(...)
sub(repl, string[, count = 0]) --> newstring
Return the string obtained by replacing the leftmost non-overlapping
occurrences of pattern in string by the replacement repl.
family_unescape = sub(...)
sub(repl, string[, count = 0]) --> newstring
Return the string obtained by replacing the leftmost non-overlapping
occurrences of pattern in string by the replacement repl.
generate_fontconfig_pattern(d)
Given a dictionary of key/value pairs, generates a fontconfig pattern
string.
parse_fontconfig_pattern = parse(self, pattern) method of FontconfigPatternParser instance
value_escape = sub(...)
sub(repl, string[, count = 0]) --> newstring
Return the string obtained by replacing the leftmost non-overlapping
occurrences of pattern in string by the replacement repl.
value_unescape = sub(...)
sub(repl, string[, count = 0]) --> newstring
Return the string obtained by replacing the leftmost non-overlapping
occurrences of pattern in string by the replacement repl.

 
Data
        family_punc = r'\\\-:,'
value_punc = r'\\=_:,'
@footer@