When i execute the following line in gnuplot Version 5.2 patchlevel 3 on artixlinux there is a problem in the ylabel string. When i execute it for second time it generates the file properly. (bad file attached)
set term pdf;set yla "Mean of collected charge distribution [au]";set o "/tmp/test.pdf"; p x; set o
That is truly weird. The order of the letters in "charge" was altered?! I can't reproduce it here and I do not recall any similar reports in the past.
I assume this is the pdfcairo terminal and not the semi-proprietary PDFlib terminal? Can you tell us the version of your cairo libraries , your pango libraries, and your freetype libraries?
Right, i am using pdfcairo terminal.
Here are the versions of the libs:
cairo 1.15.12
pango 1.42.1
freetype2 2.9.1
When the very same line is executed for second time without restarting gnuplot the generated pdf is good. I couldn't reproduce the problem with different string, which is even more strange.
I can confirm a similar behavior with ylabel. It seems to happen in my case if the first letter is a Y and the next a lowercase. I am attaching a test file to see but the problem happens in other plot files too.
Here is my output!
Associating this with #2048
After some experimenting I find that fonts Times, Times-Roman, Helvetica etc work fine without this problem but if I choose Times-New-Roman or Arial etc the problem occurs.