[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #49135] gnuplot: Default font must be set for

From: Rik
Subject: [Octave-bug-tracker] [bug #49135] gnuplot: Default font must be set for "windows" terminal
Date: Mon, 19 Sep 2016 22:39:31 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0


                 Summary: gnuplot: Default font must be set for "windows"
                 Project: GNU Octave
            Submitted by: rik5
            Submitted on: Mon 19 Sep 2016 03:39:28 PM PDT
                Category: Plotting with gnuplot
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: Confirmed
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.2.0-rc1
        Operating System: Microsoft Windows



The gnuplot "windows" terminal does not accept a blank fontname ("") without
issuing a warning.  The other terminals correctly interpret the null string to
mean gnuplot should select a default font.

Currently, Octave works around this with the following lines in

function [f, s, fnt, it, bld] = get_fontname_and_size (t)

  if (isempty (t.fontname) || strcmp (t.fontname, "*"))
    if (ispc ())
      fnt = "Helvetica";
      fnt = "";
    fnt = t.fontname;

The test used to check for a "windows" terminal is actually too generic
(ispc).  However, the value of the gnuplot term variable is not currently
available in this subfunction.

Evenutally, a better test should be worked out, or the terminal passed to this
routine, so that Octave can avoid setting a font name that doesn't exist on
terminals which CAN select an appropriate default font like "wxt".


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]