@@ -522,6 +522,11 @@ def suptitle(self, t, **kwargs):
522522 *verticalalignment* : 'top'
523523 The vertical alignment of the text
524524
525+ If the `fontproperties` keyword argument is given then the
526+ rcParams defaults for `fontsize` (`figure.titlesize`) and
527+ `fontweight` (`figure.titleweight`) will be ignored in favour
528+ of the `FontProperties` defaults.
529+
525530 A :class:`matplotlib.text.Text` instance is returned.
526531
527532 Example::
@@ -536,10 +541,11 @@ def suptitle(self, t, **kwargs):
536541 if ('verticalalignment' not in kwargs ) and ('va' not in kwargs ):
537542 kwargs ['verticalalignment' ] = 'top'
538543
539- if 'fontsize' not in kwargs and 'size' not in kwargs :
540- kwargs ['size' ] = rcParams ['figure.titlesize' ]
541- if 'fontweight' not in kwargs and 'weight' not in kwargs :
542- kwargs ['weight' ] = rcParams ['figure.titleweight' ]
544+ if 'fontproperties' not in kwargs :
545+ if 'fontsize' not in kwargs and 'size' not in kwargs :
546+ kwargs ['size' ] = rcParams ['figure.titlesize' ]
547+ if 'fontweight' not in kwargs and 'weight' not in kwargs :
548+ kwargs ['weight' ] = rcParams ['figure.titleweight' ]
543549
544550 sup = self .text (x , y , t , ** kwargs )
545551 if self ._suptitle is not None :
0 commit comments