help-octave
[Top][All Lists]
Advanced

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

Want to suppress a warning


From: gOS
Subject: Want to suppress a warning
Date: Fri, 2 Jan 2009 06:21:12 -0800 (PST)

I want to suppress a specific warning from pgnuplot:

"(pgnuplot.exe:3664): Pango-WARNING **: couldn't load font
"C:\WINDOWS\Fonts\COUR.ttf Not-Rotated 200", falling back to "Sans
Not-Rotated 200",  expect ugly output."

I realize this is not a specific Octave question, but I only deal with
pgnuplot through octave, so I'd like to know if there is a way to prevent
this from showing up.

I know usually the recommendation is to use ** set(0, 'defaulttextfontname',
'*') **; however, I would like to use the font COUR.ttf, as the default font
set by '*' does not print correctly to a .png file. So, I would like to use
** set(0, 'defaulttextfontname', 'C:\WINDOWS\Fonts\COUR.ttf') **, but I want
to suppress the pgnuplot pango warning that comes up.

I understand the warning, but less informed users who use the scripts and
are unfamiliar with the difference between an error and a warning tend to
view the warning as a problem and then don't trust their results.

Please advise and thank you.


-- 
View this message in context: 
http://www.nabble.com/Want-to-suppress-a-warning-tp21251936p21251936.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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