SetTTFPath — Set the name of the default TrueType font directory
$plot->SetTTFPath($path
)
SetTTFPath
sets the name of the directory where
SetFont and SetFontTTF
can find TrueType font files.
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.
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.