Image_Graph_Base::setFontOptions()

Image_Graph_Base::setFontOptions() -- Set options for fonts

Synopsis

require_once '/Graph/Elements.php';

void Image_Graph_Base::setFontOptions ([array $options = array()])

Description

All information not given in this array (e.g. font_path) will be taken from the default font-options set in the Image_Graph-object. These options are directly given to the class Image_Text which handles text-output. For a full list of necessary/available font-options please refer to the Image_Text-docs and/or have a look at the examples shipped with the Image_Graph-package. !! Note that the option "font_type" defaults to "ttf" (TrueType-fonts) at the moment. As soon as PHP-internal (bitmap) fonts are also supported by Image_Text this will default to those internal fonts instead. !!

Parameter

array $options

stores information like font_type, font_path, font_file, font_size, antialiasing etc.

Throws

throws no exceptions thrown

Note

This function can not be called statically.