Font problem in 2-lines titles with cairo terminals

hchiPer <[email protected]> Mon, 14 Feb 2022 21:12:42 +0100
Newsgroups gmane.comp.graphics.gnuplot.user
Message-ID <[email protected]>
Hi,

I use gnuplot 5.4 on a Debian 11 based distro.

I have plots with 2-lines title with a font-face and font-size different 
from the default.
When the first line in the title contains an (escaped) *ampersand*, the 
font-face and font-size are reset to the default ones when using the 
following terminals: pngcairo, pdfcairo, epscairo.
No problem with other terminals (png, wxt, qt, ...)

This problem appeared when I upgraded gnuplot from 5.2 to 5.4.

Is this a bug?

Thanks for your help.

Code to reproduce:

tit1 = "A \\& B"
tit2 = "X + Y"
set title tit1."\n".tit2 font "Serif,24"
set terminal wxt
plot x
set terminal pngcairo        # or pdfcairo or epscairo
set output "ampersand.png"   # or  .pdf    or  .eps
replot
set output


_______________________________________________
gnuplot-info mailing list
[email protected]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info