matplotlib.fontconfig_pattern
¶
A module for parsing and generating fontconfig patterns.
- class matplotlib.fontconfig_pattern.FontconfigPatternParser[source]¶
Bases:
object
A simple pyparsing-based parser for fontconfig patterns.
- parse(pattern)[source]¶
Parse the given fontconfig pattern and return a dictionary of key/value pairs useful for initializing a
font_manager.FontProperties
object.
- matplotlib.fontconfig_pattern.family_escape(/, repl, string, count=0)¶
Return the string obtained by replacing the leftmost non-overlapping occurrences of pattern in string by the replacement repl.
- matplotlib.fontconfig_pattern.family_unescape(/, repl, string, count=0)¶
Return the string obtained by replacing the leftmost non-overlapping occurrences of pattern in string by the replacement repl.
- matplotlib.fontconfig_pattern.generate_fontconfig_pattern(d)[source]¶
Given a dictionary of key/value pairs, generates a fontconfig pattern string.
- matplotlib.fontconfig_pattern.parse_fontconfig_pattern(pattern)[source]¶
Parse the given fontconfig pattern and return a dictionary of key/value pairs useful for initializing a
font_manager.FontProperties
object.
- matplotlib.fontconfig_pattern.value_escape(/, repl, string, count=0)¶
Return the string obtained by replacing the leftmost non-overlapping occurrences of pattern in string by the replacement repl.
- matplotlib.fontconfig_pattern.value_unescape(/, repl, string, count=0)¶
Return the string obtained by replacing the leftmost non-overlapping occurrences of pattern in string by the replacement repl.