SetTTFPath
Prev | PHPlot Function Reference | Next

## SetTTFPath

SetTTFPath — Set the name of the default TrueType font directory

## Synopsis

    $plot->SetTTFPath($path)

## Description

`SetTTFPath` sets the name of the directory where SetFont and SetFontTTF can find TrueType font files.

## Parameters

`$path`

  Full path to a directory containing TrueType fonts.

## Notes

The default TrueType font directory is '.', meaning fonts will only be searched for in the directory containing your main PHP script. This default can be changed at installation time as described in Section 1.2, “Installing”.

SetTTFPath does not enable the use of TrueType fonts. See the note at the end of the reference for SetUseTTF on how to set up and use TrueType fonts.

## History

Starting with PHPlot-5.0rc3, the default TrueType font directory is used both for the default font set with SetDefaultTTFont and for fonts set with SetFont. Refer to those two functions for details.

Prev | Up | Next
SetSkipTopTick | Home | SetTextColor