Menu

#1997 "set key font" not working when using enhanced titles

None
closed-fixed
nobody
None
2018-04-28
2017-12-06
Anonymous
No

Hello,
Whenever I use any enhanced text feature in the key, the font reverts to the one specified in "set term", rather than the one specified in "set key", i.e.:

set term pdfcairo font "Serif"
set out "test.pdf"
set key font "Sans"
plot x title "plain" # so far so good: key is in Sans
plot x title "with ^{superscript}" # wrong: key is in Serif!
plot x title "with {/:Italic italics}" # wrong: key is in Serif!

Am I doing something wrong or is this a bug? I'm using gnuplot 5.0 patchlevel 3 on Linux Mint 18.2 with Xfce.

Best regards,
Armando

Discussion

  • Karl Ratzsch

    Karl Ratzsch - 2017-12-08

    Can reproduce this on 5.0pl1, but not 5.2pl2. Seems this has been fixed?

    Found this in the changelog:
    2016-01-31 Ethan A Merritt merritt@u.washington.edu

    * src/wxterminal/wxt_gui.cpp:  Another pair of fixes for wxt font
    processing.  Prevent a memory leak from temporary storage of the
    fontname.  Initial font used by enhanced text processing should be the
    most recently set font, not the original one from "set term".
    

    Funnily, 5.0pl3 was released five days later.

     
    • Ethan Merritt

      Ethan Merritt - 2017-12-23

      The ChangeLog entry only mentions the wxt terminal, not the other cairo terminals.
      The same fix is needed in cairo.trm for both 5.2 and 5.3 (and 5.0 if anyone cares).

       
  • Ethan Merritt

    Ethan Merritt - 2017-12-23
    • status: open --> pending-fixed
    • Group: -->
    • Priority: -->
     
  • Ethan Merritt

    Ethan Merritt - 2018-04-28
    • Status: pending-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB