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(self, 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)
-
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.
© 2012–2018 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.2.2/api/fontconfig_pattern_api.html