[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using fonts with the print command
From: |
John W. Eaton |
Subject: |
Re: Using fonts with the print command |
Date: |
Mon, 28 Jul 2008 15:28:13 -0400 |
On 25-Jul-2008, natblist wrote:
|
| Thanks Dave, this was a big help,
|
| Just to add to Dave T's info, if you're using windows (as I am :) with
| octave 3, to get the fonts to work, use the full path to the windows font
| like this:
|
| title ("foo bar" ,'FontName', 'c:/windows/fonts/Arial.ttf') ;
|
| I messed around with adding GDFONT environment variable in 'doze, but the
| above was the only way that worked for me in 3.0.1.
I would try to avoid that in my code because then it will not be
portable to systems that don't recognize filenames like
"c:/windows/...".
Or, at least I would not set the font in each graphics call that uses
text. Instead, I would at least use
set (0, "defaulttextfontname", "c:/windows/fonts/Arial.ttf");
to set the default for all text objects.
I assume you are using gnuplot. Perhaps someone here can explain how
to get gnuplot on Windows systems to recognize the fonts properly
without having to specify a full filename.
jwe