Hi,

the size of the box around the legend and the new greyout box is too small for longer key texts on my system (win7, latest 5.0 binary from Tatsuro). With "set label ... boxed", the size is calculated correctly (see example below), so it seems not to be a general problem with the fonts, and it looks the same with any font i tried.

The two problems seem unrelated, as my text2 below gets the right key box, but the greyout box is too small.

The key box also gets too small for text1 in gp465.

There´s one other open bug report (https://sourceforge.net/p/gnuplot/bugs/1224/) on font sizes with wxt, might be the same culprit.

===

text1 = "AAAAAAAAAAAAAAAAAAAAAAAAAAAA"

text2 = "dgamma(abs(r))"

text3 = "BBBBBBB"

text4 = "v(r)"

set key box

set label 2 text2 at -0.5, -0.1 boxed

set label 4 text4 at -0.5, -0.3 boxed

plot [-1:1] -x title text2, 0 title text4

pause -1

set label 1 text1 at -0.5, -0.5 boxed

set label 3 text3 at -0.5, -0.7 boxed

replot .2 title text1, .1 title text3