You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TST: Re-generate SVG files that use fonttype='none'
We currently special-case the SVG converter depending on if it used
fonttype='none', and use one that has our base fonts available. However,
this is not based on the rcParam setting (because we don't have that at
conversion time), but on whether the SVG text contains the font styling
[1]. This check for styling uses the _current_ version, which was
changed way back in #19253.
These files were never re-generated though, and used the old version of
the style, meaning the expected images never triggered the special
converter. The result images are written with the current style, and
_do_ trigger the special conveter.
Evidentally, this never was a problem for most developers, because
everyone had DejaVu Sans installed globally, so the expected images
matched. However, on the clean macOS CI, it's not installed globally, so
the expected images get converted with the wrong font, and the test
fails.
[1] https://github.com/matplotlib/matplotlib/blob/de1102668dbc0694e98653bd17641e9d99394e57/lib/matplotlib/testing/compare.py#L303
0 commit comments