MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / set_fontconfig_pattern

Method set_fontconfig_pattern

lib/matplotlib/font_manager.py:1060–1071  ·  view source on GitHub ↗

Set the properties by parsing a fontconfig_ *pattern*. This support does not depend on fontconfig; we are merely borrowing its pattern syntax for use here.

(self, pattern)

Source from the content-addressed store, hash-verified

1058 self._file = os.fspath(file) if file is not None else None
1059
1060 def set_fontconfig_pattern(self, pattern):
1061 """
1062 Set the properties by parsing a fontconfig_ *pattern*.
1063
1064 This support does not depend on fontconfig; we are merely borrowing its
1065 pattern syntax for use here.
1066 """
1067 for key, val in parse_fontconfig_pattern(pattern).items():
1068 if type(val) is list:
1069 getattr(self, "set_" + key)(val[0])
1070 else:
1071 getattr(self, "set_" + key)(val)
1072
1073 def get_math_fontfamily(self):
1074 """

Callers 1

__init__Method · 0.95

Calls 1

parse_fontconfig_patternFunction · 0.90

Tested by

no test coverage detected