| 247 | self.set_antialiased(mpl._val_or_rc(antialiased, 'text.antialiased')) |
| 248 | |
| 249 | def update(self, kwargs): |
| 250 | # docstring inherited |
| 251 | ret = [] |
| 252 | kwargs = cbook.normalize_kwargs(kwargs, Text) |
| 253 | sentinel = object() # bbox can be None, so use another sentinel. |
| 254 | # Update fontproperties first, as it has lowest priority. |
| 255 | fontproperties = kwargs.pop("fontproperties", sentinel) |
| 256 | if fontproperties is not sentinel: |
| 257 | ret.append(self.set_fontproperties(fontproperties)) |
| 258 | # Update bbox last, as it depends on font properties. |
| 259 | bbox = kwargs.pop("bbox", sentinel) |
| 260 | ret.extend(super().update(kwargs)) |
| 261 | if bbox is not sentinel: |
| 262 | ret.append(self.set_bbox(bbox)) |
| 263 | return ret |
| 264 | |
| 265 | def __getstate__(self): |
| 266 | d = super().__getstate__() |