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)
| 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 | """ |
no test coverage detected