diff --git a/lib/matplotlib/tests/baseline_images/test_backend_ps/type3.eps b/lib/matplotlib/tests/baseline_images/test_backend_ps/type3.eps deleted file mode 100644 index 9c9645b47cf0..000000000000 --- a/lib/matplotlib/tests/baseline_images/test_backend_ps/type3.eps +++ /dev/null @@ -1,112 +0,0 @@ -%!PS-Adobe-3.0 EPSF-3.0 -%%Orientation: portrait -%%BoundingBox: 18.0 180.0 594.0 612.0 -%%EndComments -%%BeginProlog -/mpldict 11 dict def -mpldict begin -/d { bind def } bind def -/m { moveto } d -/l { lineto } d -/r { rlineto } d -/c { curveto } d -/cl { closepath } d -/ce { closepath eofill } d -/box { - m - 1 index 0 r - 0 exch r - neg 0 r - cl - } d -/clipbox { - box - clip - newpath - } d -/sc { setcachedevice } d -%!PS-Adobe-3.0 Resource-Font -%%Creator: Converted from TrueType to Type 3 by Matplotlib. -10 dict begin -/FontName /DejaVuSans def -/PaintType 0 def -/FontMatrix [0.00048828125 0 0 0.00048828125 0 0] def -/FontBBox [-2090 -948 3673 2524] def -/FontType 3 def -/Encoding [/I /J /slash] def -/CharStrings 4 dict dup begin -/.notdef 0 def -/I{604 0 201 0 403 1493 sc -201 1493 m -403 1493 l -403 0 l -201 0 l -201 1493 l - -ce} d -/J{604 0 -106 -410 403 1493 sc -201 1493 m -403 1493 l -403 104 l -403 -76 369 -207 300 -288 c -232 -369 122 -410 -29 -410 c --106 -410 l --106 -240 l --43 -240 l -46 -240 109 -215 146 -165 c -183 -115 201 -25 201 104 c -201 1493 l - -ce} d -/slash{690 0 0 -190 690 1493 sc -520 1493 m -690 1493 l -170 -190 l -0 -190 l -520 1493 l - -ce} d -end readonly def - -/BuildGlyph { - exch begin - CharStrings exch - 2 copy known not {pop /.notdef} if - true 3 1 roll get exec - end -} d - -/BuildChar { - 1 index /Encoding get exch get - 1 index /BuildGlyph get exec -} d - -FontName currentdict end definefont pop -end -%%EndProlog -mpldict begin -18 180 translate -576 432 0 0 clipbox -gsave -0 0 m -576 0 l -576 432 l -0 432 l -cl -1.000 setgray -fill -grestore -0.000 setgray -/DejaVuSans findfont -12.000 scalefont -setfont -gsave -288.000000 216.000000 translate -0.000000 rotate -0.000000 0 m /I glyphshow -3.539062 0 m /slash glyphshow -7.582031 0 m /J glyphshow -grestore - -end -showpage diff --git a/lib/matplotlib/tests/baseline_images/test_text/text_pdf_chars_beyond_bmp.pdf b/lib/matplotlib/tests/baseline_images/test_text/text_pdf_chars_beyond_bmp.pdf deleted file mode 100644 index 8890790d2ea2..000000000000 Binary files a/lib/matplotlib/tests/baseline_images/test_text/text_pdf_chars_beyond_bmp.pdf and /dev/null differ diff --git a/lib/matplotlib/tests/baseline_images/test_text/text_pdf_font42_kerning.pdf b/lib/matplotlib/tests/baseline_images/test_text/text_pdf_font42_kerning.pdf deleted file mode 100644 index a8ce9fca346c..000000000000 Binary files a/lib/matplotlib/tests/baseline_images/test_text/text_pdf_font42_kerning.pdf and /dev/null differ diff --git a/lib/matplotlib/tests/baseline_images/test_text/text_pdf_kerning.pdf b/lib/matplotlib/tests/baseline_images/test_text/text_pdf_kerning.pdf deleted file mode 100644 index 7db9a1b44fad..000000000000 Binary files a/lib/matplotlib/tests/baseline_images/test_text/text_pdf_kerning.pdf and /dev/null differ diff --git a/lib/matplotlib/tests/test_backend_ps.py b/lib/matplotlib/tests/test_backend_ps.py index bb6b08d14a6d..5037c15370a5 100644 --- a/lib/matplotlib/tests/test_backend_ps.py +++ b/lib/matplotlib/tests/test_backend_ps.py @@ -219,11 +219,6 @@ def test_useafm(): ax.text(.5, .5, "qk") -@image_comparison(["type3.eps"]) -def test_type3_font(): - plt.figtext(.5, .5, "I/J") - - @image_comparison(["coloredhatcheszerolw.eps"]) def test_colored_hatch_zero_linewidth(): ax = plt.gca() diff --git a/lib/matplotlib/tests/test_text.py b/lib/matplotlib/tests/test_text.py index 26399c499401..ec5ee924899b 100644 --- a/lib/matplotlib/tests/test_text.py +++ b/lib/matplotlib/tests/test_text.py @@ -845,12 +845,6 @@ def test_invalid_color(): plt.figtext(.5, .5, "foo", c="foobar") -@image_comparison(['text_pdf_kerning.pdf'], style='mpl20') -def test_pdf_kerning(): - plt.figure() - plt.figtext(0.1, 0.5, "ATATATATATATATATATA", size=30) - - # See gh-26152 for more information on this xfail @pytest.mark.xfail(pyparsing_version.release == (3, 1, 0), reason="Error messages are incorrect with pyparsing 3.1.0") @@ -881,21 +875,6 @@ def test_parse_math_rcparams(): fig.canvas.draw() -@image_comparison(['text_pdf_font42_kerning.pdf'], style='mpl20') -def test_pdf_font42_kerning(): - plt.rcParams['pdf.fonttype'] = 42 - plt.figure() - plt.figtext(0.1, 0.5, "ATAVATAVATAVATAVATA", size=30) - - -@image_comparison(['text_pdf_chars_beyond_bmp.pdf'], style='mpl20') -def test_pdf_chars_beyond_bmp(): - plt.rcParams['pdf.fonttype'] = 42 - plt.rcParams['mathtext.fontset'] = 'stixsans' - plt.figure() - plt.figtext(0.1, 0.5, "Mass $m$ \U00010308", size=30) - - @needs_usetex def test_metrics_cache(): # dig into the signature to get the mutable default used as a cache