matplotlib.fontconfig_pattern

解析和生成模块 fontconfig patterns .

class matplotlib.fontconfig_pattern.FontconfigPatternParser[源代码]

基类:object

一个简单的基于pyparsing的解析器 fontconfig patterns .

parse(pattern)[源代码]

分析给定的fontconfig 模式 并返回用于初始化 font_manager.FontProperties 对象。

matplotlib.fontconfig_pattern.family_escape(/, repl, string, count=0)

返回通过用replacement repl替换字符串中最左边的不重叠的模式来获得的字符串。

matplotlib.fontconfig_pattern.family_unescape(/, repl, string, count=0)

返回通过用replacement repl替换字符串中最左边的不重叠的模式来获得的字符串。

matplotlib.fontconfig_pattern.generate_fontconfig_pattern(d)[源代码]

给定一个键/值对的字典,生成一个fontconfig模式字符串。

matplotlib.fontconfig_pattern.parse_fontconfig_pattern(pattern)

分析给定的fontconfig 模式 并返回用于初始化 font_manager.FontProperties 对象。

matplotlib.fontconfig_pattern.value_escape(/, repl, string, count=0)

返回通过用replacement repl替换字符串中最左边的不重叠的模式来获得的字符串。

matplotlib.fontconfig_pattern.value_unescape(/, repl, string, count=0)

返回通过用replacement repl替换字符串中最左边的不重叠的模式来获得的字符串。