[UNIX only] Specifies the directories where the True Type Fonts are located.
void object->SetTTFontsDir( string directories )
If the True Type Fonts directory is not specified neither by the method SetTTFontsDir nor the TTFontsDir parameter in the configuration file, Swiff Chart Generator will raise an error.
This directory can be anywhere on your file system as long as Swiff Chart Generator has the minimum access rights to it as well as the True Type fonts files stored in it. Read Running Swiff Chart Generator on UNIX systems for more information about access rights.
The directories parameter is a column-separated string meaning that several directories path can be specified. The directories parameter shoudl therefore look as follow:
directory_path_1:directory_path_2:...:directory_path_n
The following PHP code illustrates use of the SetTTFontsDir method.
// Specify the directory where the True Type fonts must be looked for $chart->SetTTFontsDir("/usr/share/fonts"); $chart->SetDataFromQuery(); $chart->LoadStyle("C:\\myStyle.scs"); // The chart is complete, we can now generate the movie echo $chart->GetHTMLTag();
Running Swiff Chart Generator on UNIX systems
Applies To: Chart Object