<divid="unreleased-message"> You are reading an old version of the documentation (v3.3.2). For the latest version see <ahref="https://matplotlib.org/stable/api/fontconfig_pattern_api.html">https://matplotlib.org/stable/api/fontconfig_pattern_api.html</a></div>
<spanid="matplotlib-fontconfig-pattern"></span><h1><codeclass="docutils literal notranslate"><spanclass="pre">matplotlib.fontconfig_pattern</span></code><aclass="headerlink" href="#module-matplotlib.fontconfig_pattern" title="Permalink to this headline">¶</a></h1>
<p>A module for parsing and generating <aclass="reference external" href="https://www.freedesktop.org/software/fontconfig/fontconfig-user.html">fontconfig patterns</a>.</p>
<emclass="property">class </em><codeclass="descclassname">matplotlib.fontconfig_pattern.</code><codeclass="descname">FontconfigPatternParser</code><aclass="reference internal" href="../_modules/matplotlib/fontconfig_pattern.html#FontconfigPatternParser"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.fontconfig_pattern.FontconfigPatternParser" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">parse</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">pattern</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/fontconfig_pattern.html#FontconfigPatternParser.parse"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.fontconfig_pattern.FontconfigPatternParser.parse" title="Permalink to this definition">¶</a></dt>
<dd><p>Parse the given fontconfig <em>pattern</em> and return a dictionary
<codeclass="descclassname">matplotlib.fontconfig_pattern.</code><codeclass="descname">family_escape</code><spanclass="sig-paren">(</span><em><spanclass="n">repl</span></em>, <em><spanclass="n">string</span></em>, <em><spanclass="n">count</span><spanclass="o">=</span><spanclass="default_value">0</span></em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.fontconfig_pattern.family_escape" title="Permalink to this definition">¶</a></dt>
<dd><p>Return the string obtained by replacing the leftmost non-overlapping occurrences of pattern in string by the replacement repl.</p>
<codeclass="descclassname">matplotlib.fontconfig_pattern.</code><codeclass="descname">family_unescape</code><spanclass="sig-paren">(</span><em><spanclass="n">repl</span></em>, <em><spanclass="n">string</span></em>, <em><spanclass="n">count</span><spanclass="o">=</span><spanclass="default_value">0</span></em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.fontconfig_pattern.family_unescape" title="Permalink to this definition">¶</a></dt>
<dd><p>Return the string obtained by replacing the leftmost non-overlapping occurrences of pattern in string by the replacement repl.</p>
<codeclass="descclassname">matplotlib.fontconfig_pattern.</code><codeclass="descname">generate_fontconfig_pattern</code><spanclass="sig-paren">(</span><em><spanclass="n">d</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/fontconfig_pattern.html#generate_fontconfig_pattern"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.fontconfig_pattern.generate_fontconfig_pattern" title="Permalink to this definition">¶</a></dt>
<dd><p>Given a dictionary of key/value pairs, generates a fontconfig
<codeclass="descclassname">matplotlib.fontconfig_pattern.</code><codeclass="descname">parse_fontconfig_pattern</code><spanclass="sig-paren">(</span><em><spanclass="n">pattern</span></em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.fontconfig_pattern.parse_fontconfig_pattern" title="Permalink to this definition">¶</a></dt>
<dd><p>Parse the given fontconfig <em>pattern</em> and return a dictionary
<codeclass="descclassname">matplotlib.fontconfig_pattern.</code><codeclass="descname">value_escape</code><spanclass="sig-paren">(</span><em><spanclass="n">repl</span></em>, <em><spanclass="n">string</span></em>, <em><spanclass="n">count</span><spanclass="o">=</span><spanclass="default_value">0</span></em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.fontconfig_pattern.value_escape" title="Permalink to this definition">¶</a></dt>
<dd><p>Return the string obtained by replacing the leftmost non-overlapping occurrences of pattern in string by the replacement repl.</p>
<codeclass="descclassname">matplotlib.fontconfig_pattern.</code><codeclass="descname">value_unescape</code><spanclass="sig-paren">(</span><em><spanclass="n">repl</span></em>, <em><spanclass="n">string</span></em>, <em><spanclass="n">count</span><spanclass="o">=</span><spanclass="default_value">0</span></em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.fontconfig_pattern.value_unescape" title="Permalink to this definition">¶</a></dt>
<dd><p>Return the string obtained by replacing the leftmost non-overlapping occurrences of pattern in string by the replacement repl.</p>