A module for parsing and generating fontconfig patterns.
Bases: object
A simple pyparsing-based parser for fontconfig patterns.
Parse the given fontconfig pattern and return a dictionary of key/value pairs useful for initializing a font_manager.FontProperties
object.
Return the string obtained by replacing the leftmost non-overlapping occurrences of pattern in string by the replacement repl.
Return the string obtained by replacing the leftmost non-overlapping occurrences of pattern in string by the replacement repl.
Given a dictionary of key/value pairs, generates a fontconfig pattern string.
Parse the given fontconfig pattern and return a dictionary of key/value pairs useful for initializing a font_manager.FontProperties
object.
Return the string obtained by replacing the leftmost non-overlapping occurrences of pattern in string by the replacement repl.
Return the string obtained by replacing the leftmost non-overlapping occurrences of pattern in string by the replacement repl.
© 2012–2021 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.5.1/api/fontconfig_pattern_api.html