I have an issue with MMA 12.1 under Linux, specifically, xubuntu 18.04.4, and even more specifically, font rendering.

A semi-random plot, in this case,

Plot[Sin[x Cos[x]], {x, -\[Pi], \[Pi]},
BaseStyle->{FontFamily->"Helvetica", 10}

under 12.1 exported to pdf, then converted to png (using pdftocairo) looks like enter image description here

The same plot under 12.0 looks like enter image description here

Incidentally, there's no difference in quality whether I export to PDF, then convert, or whether I Export[file, graphic, "PNG"].

Observe the difference in the quality in fonts under 12.1. I'm less worried about the difference in graticules, since they should be fixable.

Same results using any of the 2D & 3D plotting functions: 12.0 results in crisp vector fonts whereas 12.1 results in dithered unreadable messes.

Searching on StackExchange has not apparently revealed a fix, but I'd certainly appreciate being pointed in the right direction.

In any case, until such a fix can be found, I'm back to 12.0.

  • $\begingroup$ Can you provide the code to generate the graphics? $\endgroup$
    – Szabolcs
    Commented Apr 21, 2020 at 8:49
  • $\begingroup$ Very likely, the contents of the PDF were already rasterized. $\endgroup$
    – Szabolcs
    Commented Apr 21, 2020 at 8:49
  • $\begingroup$ @Szabolcs: you're likely right. On closer inspection, there's something funky with the plotted line in the 12.1 image. $\endgroup$
    – dwa
    Commented Apr 21, 2020 at 9:02
  • $\begingroup$ @Szabolcs I had the same problem last month. Once the ColorFunction is included in line (changing with coordinates), the output PDF will be rasterized, and the texts inside are not selectable. $\endgroup$ Commented Apr 21, 2020 at 10:01
  • $\begingroup$ @Pei-Xin Shen: were you able to resolve the issue? $\endgroup$
    – dwa
    Commented Apr 21, 2020 at 10:12


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.