Change the font family. Can be either an alias (generic name is CSS parlance), such as: 'serif', 'sans-serif', 'cursive', 'fantasy', or 'monospace', a real font name or a list of real font names. Real font names are not supported when :rc:`text.usetex` is `
(self, family)
| 935 | return generate_fontconfig_pattern(self) |
| 936 | |
| 937 | def set_family(self, family): |
| 938 | """ |
| 939 | Change the font family. Can be either an alias (generic name |
| 940 | is CSS parlance), such as: 'serif', 'sans-serif', 'cursive', |
| 941 | 'fantasy', or 'monospace', a real font name or a list of real |
| 942 | font names. Real font names are not supported when |
| 943 | :rc:`text.usetex` is `True`. Default: :rc:`font.family` |
| 944 | """ |
| 945 | family = mpl._val_or_rc(family, 'font.family') |
| 946 | if isinstance(family, str): |
| 947 | family = (family,) |
| 948 | self._family = tuple(family) |
| 949 | |
| 950 | def set_style(self, style): |
| 951 | """ |
no outgoing calls
no test coverage detected