font trouble when printing bitmaps

Dmitri A. Sergatskov dasergatskov at gmail.com
Sun Nov 9 21:24:16 CST 2008


On Sun, Nov 9, 2008 at 8:25 PM, Ben Abbott <bpabbott at mac.com> wrote:
> I'm running the developers sources from a few days ago.
>
> Apparently, I don't have my font configuration isn't working properly. Can
> someone who is knowledgeable of such things give me an explanation ... or
> better yet describe how to fix it?
>
> octave:14> plot(1:10)
> octave:15> print(gcf,'-djpg','test.jpg')
> gdImageStringFT: Could not find/open font while printing string 0 with font
> Times-Roman

You need to point GDFONTPATH to the directory that has these fonts. E.g.:

$ GDFONTPATH=/Library/Fonts octave

Dmitri.
--


More information about the Octave-maintainers mailing list