note 112866 added to function.rrd-graph
| From: | Anonymous | Date: | Tue, 30 Jul 2013 23:16:23 +0000 |
| Subject: | note 112866 added to function.rrd-graph | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-195830@lists.php.net to get a copy of this message | ||
When I add
--font AXIS:8:
into $options,
I receive the next error:
PNG creation error: unknown option '--font AXIS:8:'
According to docs from rrdtool site the right syntax is:
[-n|--font FONTTAG:size:[font]]
This lets you customize which font to use for the various text elements on the RRD graphs. DEFAULT
sets the default value for all elements, TITLE for the title, AXIS for the axis labels, UNIT for the
vertical unit label, LEGEND for the graph legend, WATERMARK for the watermark on the edge of the
graph.
Use Times for the title: --font TITLE:13:Times
Note that you need to quote the argument to --font if the font-name contains whitespace: --font
"TITLE:13:Some Font"
If you do not give a font string you can modify just the size of the default font: --font TITLE:13:.
----
Server IP: 69.147.83.199
Probable Submitter: 62.68.98.241
----
Manual Page -- http://php.net/manual/en/function.rrd-graph.php
Edit -- https://master.php.net/note/edit/112866
Del: integrated -- https://master.php.net/note/delete/112866/integrated
Del: useless -- https://master.php.net/note/delete/112866/useless
Del: bad code -- https://master.php.net/note/delete/112866/bad+code
Del: spam -- https://master.php.net/note/delete/112866/spam
Del: non-english -- https://master.php.net/note/delete/112866/non-english
Del: in docs -- https://master.php.net/note/delete/112866/in+docs
Del: other reasons-- https://master.php.net/note/delete/112866
Reject -- https://master.php.net/note/reject/112866
Search -- https://master.php.net/manage/user-notes.php