91 lines (84 with data), 7.0 kB
@header@
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="matplotlib.html"><font color="#ffffff">matplotlib</font></a>.fontconfig_pattern</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/jdhunter/dev/lib64/python2.5/site-packages/matplotlib/fontconfig_pattern.py">/home/jdhunter/dev/lib64/python2.5/site-packages/matplotlib/fontconfig_pattern.py</a></font></td></tr></table>
<p><tt>A module for parsing a fontconfig pattern.<br>
<br>
This class is defined here because it must be available in:<br>
- The old-style config framework (rcsetup.py)<br>
- The traits-based config framework (mpltraits.py)<br>
- The font manager (font_manager.py)<br>
<br>
It probably logically belongs in font_manager.py, but<br>
placing it in any of these places would have created cyclical<br>
dependency problems, or an undesired dependency on traits even<br>
when the traits-based config framework is not used.<br>
<br>
See here for a rough specification of these patterns:<br>
<a href="http://www.fontconfig.org/fontconfig-user.html">http://www.fontconfig.org/fontconfig-user.html</a><br>
<br>
Author : Michael Droettboom <mdroe@stsci.edu><br>
License : matplotlib license (PSF compatible)</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom> <br>
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="re.html">re</a><br>
</td><td width="25%" valign=top></td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="matplotlib.fontconfig_pattern.html#FontconfigPatternParser">FontconfigPatternParser</a>
</font></dt></dl>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="FontconfigPatternParser">class <strong>FontconfigPatternParser</strong></a></font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>A simple pyparsing-based parser for fontconfig-style patterns.<br>
<br>
See here for a rough specification of these patterns:<br>
<a href="http://www.fontconfig.org/fontconfig-user.html">http://www.fontconfig.org/fontconfig-user.html</a><br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="FontconfigPatternParser-__init__"><strong>__init__</strong></a>(self)</dt></dl>
<dl><dt><a name="FontconfigPatternParser-parse"><strong>parse</strong></a>(self, pattern)</dt></dl>
</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
<td width="100%"><dl><dt><a name="-family_escape"><strong>family_escape</strong></a> = sub(...)</dt><dd><tt>sub(repl, string[, count = 0]) --> newstring<br>
Return the string obtained by replacing the leftmost non-overlapping<br>
occurrences of pattern in string by the replacement repl.</tt></dd></dl>
<dl><dt><a name="-family_unescape"><strong>family_unescape</strong></a> = sub(...)</dt><dd><tt>sub(repl, string[, count = 0]) --> newstring<br>
Return the string obtained by replacing the leftmost non-overlapping<br>
occurrences of pattern in string by the replacement repl.</tt></dd></dl>
<dl><dt><a name="-generate_fontconfig_pattern"><strong>generate_fontconfig_pattern</strong></a>(d)</dt><dd><tt>Given a dictionary of key/value pairs, generates a fontconfig pattern<br>
string.</tt></dd></dl>
<dl><dt><a name="-parse_fontconfig_pattern"><strong>parse_fontconfig_pattern</strong></a> = parse(self, pattern)<font color="#909090"><font face="helvetica, arial"> method of <a href="matplotlib.fontconfig_pattern.html#FontconfigPatternParser">FontconfigPatternParser</a> instance</font></font></dt></dl>
<dl><dt><a name="-value_escape"><strong>value_escape</strong></a> = sub(...)</dt><dd><tt>sub(repl, string[, count = 0]) --> newstring<br>
Return the string obtained by replacing the leftmost non-overlapping<br>
occurrences of pattern in string by the replacement repl.</tt></dd></dl>
<dl><dt><a name="-value_unescape"><strong>value_unescape</strong></a> = sub(...)</dt><dd><tt>sub(repl, string[, count = 0]) --> newstring<br>
Return the string obtained by replacing the leftmost non-overlapping<br>
occurrences of pattern in string by the replacement repl.</tt></dd></dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
<td width="100%"><strong>family_punc</strong> = r'\\\-:,'<br>
<strong>value_punc</strong> = r'\\=_:,'</td></tr></table>
@footer@