tags:

views:

2771

answers:

2

The gnuplot docs have this to say about fonts:

    Five basic fonts are supported directly by the gd library. These are
    `tiny` (5x8 pixels), `small` (6x12 pixels), `medium`, (7x13 Bold), 
    `large` (8x16) or `giant` (9x15 pixels).

But when i try to use one:

    gnuplot> set terminal png font tiny

I get:

    Could not find/open font when opening font tiny, using default

How do I use these seemingly built-in fonts?

+1  A: 

From the same page of gnuplot documentation

If gnuplot was built with support for TrueType (.ttf) or Adobe Type 1 (.pfa) fonts, they may be selected using the 'font {}' option. is either the full pathname to the font file, or a font face name that is assumed to be the first part of a filename in one of the directories listed in the GDFONTPATH environmental variable.

On Windows, this path is C:\WINDOWS\Fonts (or %WINDIR%\Fonts)

So the fonts you can use are 'arial' 'times' 'cour', etc.

deemer
Thanks, but I of course read that too. That wasn't it .. see below.
raldi
+1  A: 

The problem was that, for these fonts for some reason, you don't use the standard syntax I tried above:

gnuplot> set terminal png font tiny

But instead, you drop the word "font" for these five special fonts:

gnuplot> set terminal png tiny
raldi