Bug 537960

Summary: gnuplot: Could not find/open font when opening font "arial", using internal non-scalable font
Product: [Fedora] Fedora Reporter: nucleo <alekcejk>
Component: gnuplotAssignee: Ivana Varekova <varekova>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: cassiomartini, fedora, florent.angly, iseeglass, jamatos, jbayes, pertusus, rdieter, steve.traylen, sudo, varekova
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: gnuplot-4.4.0-5.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-09-09 01:20:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description nucleo 2009-11-16 23:05:11 UTC
Description of problem:
wxplot2d returns error message
"Could not find/open font when opening font "arial", using internal non-scalable font"

Version-Release number of selected component (if applicable):
wxMaxima-0.8.3a-1.fc12

How reproducible:
Every time.

Steps to Reproduce:
1. Start wxMaxima
2. Enter "wxplot2d(x,[x,1,2]);"
3. Press Ctrl+R
  
Actual results:
Error message "Could not find/open font when opening font "arial", using internal non-scalable font"

Expected results:
Should not be such errors.

Additional info:
wxplot2d in wxMaxima-0.8.3a-1.fc11 in Fedora 11 works without such error messages.

Comment 1 Rex Dieter 2009-11-18 15:59:28 UTC
A quick grep of wxmaxima sourcecode finds no reference to arial.

Comment 2 Rex Dieter 2009-11-18 16:02:48 UTC
got a few hits in maxima source however, maybe it's coming from there.

Comment 3 Rex Dieter 2009-11-18 16:09:12 UTC
Looks like it uses gnuplot under the hood, bouncing there for comment/feedback.

Comment 4 Joe Bayes 2010-02-12 07:12:00 UTC
I'm getting the same problem using straight gnuplot. I'm using, 

  set terminal png
  set output 'MWEFTW.png'

in my script, which makes the printing on the output very ugly. 

If I don't do the above, then it displays the graph on the screen just fine.

Comment 5 Henrique Martins 2010-04-14 19:25:27 UTC
This was supposed to have been fixed with gnuplot 4.2.5-2, see:
  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=524962
but my gnuplot-4.2.6-1.fc12.x86_64 still exhibits the same behavior.

Comment 6 Cassio 2010-07-21 19:05:03 UTC
I get the same problem (using Fedora 13).

Installed Packages
Name       : gnuplot
Arch       : i686
Version    : 4.2.6
Release    : 1.fc12

Terminal type set to 'png'
Could not find/open font when opening font "arial", using internal non-scalable font
Options are 'nocrop medium '

Comment 7 Florent Angly 2010-08-16 06:36:37 UTC
I got this error as well when saving a graph made by Octave (Octave uses Gnuplot for plotting):
$ octave
octave:1> print('mygraph.png')
Could not find/open font when opening font "arial", using internal non-scalable font

The liberation-sans-fonts package is installed on my system. It is intended as a replacement for Microsoft Arial." So I added this to my ~/.bashrc to work around this bug:
export GDFONTPATH=/usr/share/fonts/liberation
export GNUPLOT_DEFAULT_GDFONT=LiberationSans-Regular

Then:
$ source ~/.bashrc

Comment 8 Cassio 2010-08-16 11:35:19 UTC
(In reply to comment #7)

Florent, 

That workaround works for me too. Thanks.
Perhaps it can be incorporated in some configuration file for the next release?

Comment 9 Fedora Update System 2010-08-17 09:15:39 UTC
gnuplot-4.2.6-2.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/gnuplot-4.2.6-2.fc13

Comment 10 Fedora Update System 2010-08-17 09:56:54 UTC
gnuplot-4.4.0-5.fc14 has been submitted as an update for Fedora 14.
http://admin.fedoraproject.org/updates/gnuplot-4.4.0-5.fc14

Comment 11 Ivana Varekova 2010-08-17 10:01:07 UTC
Fixed in gnuplot-4.4.0-5. in rawhide.

Comment 12 Fedora Update System 2010-08-17 19:35:50 UTC
gnuplot-4.4.0-5.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update gnuplot'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/gnuplot-4.4.0-5.fc14

Comment 13 Fedora Update System 2010-09-09 01:20:20 UTC
gnuplot-4.2.6-2.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 14 Fedora Update System 2010-09-09 04:35:42 UTC
gnuplot-4.4.0-5.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 15 Magnus Glantz 2014-08-09 09:38:59 UTC
Another workaround I can confirm is using:

set term postscript
set output "output.ps"

then..

# yum install ImageMagick
# convert output.ps output.png