Menu

#2118 Pango-WARNING **: couldn't load font when using wxt terminal with enhanced font "Times,12" and multiplots on Windows

None
closed-not-a-bug
nobody
None
2019-05-21
2019-01-22
Anonymous
No

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

Discussion

  • Rami Radi

    Rami Radi - 2019-01-22
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,6 +1,6 @@
     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.
    +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**
    
    • Group: -->
    • Priority: -->
     
  • Karl Ratzsch

    Karl Ratzsch - 2019-01-22

    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
    • Rami Radi

      Rami Radi - 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

       
      • Karl Ratzsch

        Karl Ratzsch - 2019-01-22

        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.

         
  • Tatsuro MATSUOKA

    gnuplot does not recognize font name that has space. Use "Times-New-Roman" for Times New Roman.

     
    • Karl Ratzsch

      Karl Ratzsch - 2019-01-23

      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.

       
  • Tatsuro MATSUOKA

    • status: open --> open-not-a-bug
     
  • Tatsuro MATSUOKA

    Sorry I remember that Times-New-Roman" for Times New Roman is for enhanced Text font specification.

    set title "{/Times New Roman a}" # bad result
    set title "{/Times-New-Roman a}" # expected result
    

    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

    set title "{/Times-New-Roman a}"
    

    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
  • Tatsuro MATSUOKA

    I create the ticket about issue of font name with hyphen on enhanced text.
    See : #2121

     
  • Ethan Merritt

    Ethan Merritt - 2019-01-28

    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.

     
  • Tatsuro MATSUOKA

    In the "Wiki article on Windows fonts", I found Times New Roman in "List of Installed Typefaces in Windows 10 (N. America)".

     
    • Rami Radi

      Rami Radi - 2019-01-29

      Thank you Tatsuro for confirming this. I was confused with Ethan's note.

      Appreciate you opening up a seperate ticket.

       
  • Ethan Merritt

    Ethan Merritt - 2019-05-21
    • status: open-not-a-bug --> closed-not-a-bug
     

Log in to post a comment.

MongoDB Logo MongoDB