[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 |
URL:
<http://savannah.gnu.org/bugs/?49135>
Summary: gnuplot: Default font must be set for "windows"
terminal
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
_______________________________________________________
Details:
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
__gnuplot_draw_axes__.m.
function [f, s, fnt, it, bld] = get_fontname_and_size (t)
if (isempty (t.fontname) || strcmp (t.fontname, "*"))
if (ispc ())
fnt = "Helvetica";
else
fnt = "";
endif
else
fnt = t.fontname;
endif
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:
<http://savannah.gnu.org/bugs/?49135>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #49135] gnuplot: Default font must be set for "windows" terminal,
Rik <=
- [Octave-bug-tracker] [bug #49135] gnuplot: Default font must be set for "windows" terminal, Rik, 2016/09/19
- [Octave-bug-tracker] [bug #49135] gnuplot: Default font must be set for "windows" terminal, Tatsuro MATSUOKA, 2016/09/19
- [Octave-bug-tracker] [bug #49135] gnuplot: Default font must be set for "windows" terminal, Tatsuro MATSUOKA, 2016/09/19
- [Octave-bug-tracker] [bug #49135] gnuplot: Default font must be set for "windows" terminal, Tatsuro MATSUOKA, 2016/09/19
- [Octave-bug-tracker] [bug #49135] gnuplot: Default font must be set for "windows" terminal, Tatsuro MATSUOKA, 2016/09/20
- [Octave-bug-tracker] [bug #49135] gnuplot: Default font must be set for "windows" terminal, Tatsuro MATSUOKA, 2016/09/20
- [Octave-bug-tracker] [bug #49135] gnuplot: Default font must be set for "windows" terminal, Tatsuro MATSUOKA, 2016/09/20
- [Octave-bug-tracker] [bug #49135] gnuplot: Default font must be set for "windows" terminal, Tatsuro MATSUOKA, 2016/09/20
- [Octave-bug-tracker] [bug #49135] gnuplot: Default font must be set for "windows" terminal, Tatsuro MATSUOKA, 2016/09/20