|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Want to suppress a warningI 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. |
|
|
Re: Want to suppress a warningMight 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 <bkirklin@...> 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 > Help-octave@... > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > Help-octave mailing list Help-octave@... https://www-old.cae.wisc.edu/mailman/listinfo/help-octave |
|
|
Re: Want to suppress a warningI meant to hit 'reply all' but apparently hit reply. In case this affects another person's input here's the correspondence:
Anyhow, I'm looking into the pango, glib, and pgnuplot documentation, but have not turned anything up yet |
| Free embeddable forum powered by Nabble | Forum Help |