Using Gnuplot 5.2.6 on Windows 10. The following multiplot attempt produces the following warning.
If i remove the font specification or change it to Arial, the warning goes away!
Pango-WARNING : couldn't load font when using wxt terminal with enhanced font "Times,12" and multiplots on Windows
Example:
set terminal wxt enhanced font "Times,12"
set multiplot layout 3, 1 title "Multiplot test"
set tmargin 2
set title "Plot 1"
unset key
plot sin(x)/x
set title "Plot 2"
unset key
plot cos(x)/x
set title "Plot 3"
unset key
plot tan(x)/x
unset multiplot
Diff:
Are you running this in the (windows shell) console version? Because this warning is not normally shown in the standard GUI console. (it should, principally)
And do you not get the warning if you just do a simple "plot x", without going to multiplot mode? (That would be really odd.)
Anyway, the reason is you don't have "Times" on a regular windows installation, but only "Times New Roman", the MS copy. "Arial" you have, so you get no warning. No bug here, very likely.
Last edit: Karl Ratzsch 2019-01-22
Hi Karl,
Yes, i see this warning when I run it in the console.
I do not get the warning when I dont go into multiplot mode.
Attached are 2 screenshots that I hope are helpful.
So i should always use "Times New Roman" and not just "Times" on Windows?
Rami
Or any other font that you actually have. What you see on your screenshots is definitely no "Times" variant but the default sans serif font, as the warning tells you.
(Times and Times New Roman are principally the same font, but the names belong to two different companies, one of which has licensed it to Microsoft (TNR), and the other to the rest of the world (Times). There are a few subtle differences in what they look like, but you'd have to be a typesetter to recognise them.)
I don't know if it is possible on windows to create alias names for fonts.
gnuplot does not recognize font name that has space. Use "Times-New-Roman" for Times New Roman.
Have you tried that lately? On my system, wxt understands both "times-new-roman" and "times new roman", but e.g. the windows terminal doesn't even find the font with dashes instead of spaces, and switches to default sans serif.
Sorry I remember that Times-New-Roman" for Times New Roman is for enhanced Text font specification.
on wxt terminal.
I found font name with dash in docs/psdoc/ps_guide.pdf in windows binary distribution.
As you said, windows terminal doesn't even find the font with dashes instead of spaces and
does not work.
It seems that this is another bug.
Do you think that it is better to create another bug ticket?
Last edit: Tatsuro MATSUOKA 2019-01-24
I create the ticket about issue of font name with hyphen on enhanced text.
See : #2121
This is something you will have to fix by installing or configuring fonts on your system. It cannot be fixed in gnuplot. At best gnuplot can try to provide common fonts as the default. For example arial was present on almost all Windows systems for many years but more recently has gone out of favor. Here is a list of fonts provided with different versions of Windows
Wiki article on Windows fonts
Notice that Times New Roman does not appear in the list for Windows 10, with or without hyphens.
In the "Wiki article on Windows fonts", I found Times New Roman in "List of Installed Typefaces in Windows 10 (N. America)".
Thank you Tatsuro for confirming this. I was confused with Ethan's note.
Appreciate you opening up a seperate ticket.