[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Want to suppress a warning
From: |
Michael Goffioul |
Subject: |
Re: Want to suppress a warning |
Date: |
Fri, 2 Jan 2009 14:36:23 +0000 |
Might be completely unrelated, but why don't you try
set(0, 'defaulttextfontname', 'Courier New')
Doesn't that work?
Michael.
On Fri, Jan 2, 2009 at 2:21 PM, gOS <address@hidden> wrote:
>
> 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.
>
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
>