[phpOpenTracker-devel] [Bug #5062] Plot function in API - Default font not TTF

[email protected] Wed, 14 Sep 2005 04:31:33 -0500 (CDT)
Newsgroups gmane.comp.web.phpopentracker.devel
Message-ID <[email protected]>
Bug #5062, was updated on 2005-Sep-14 04:31
Here is a current snapshot of the bug.

Project: phpOpenTracker
Category: None
Status: Open
Resolution: None
Bug Group: None
Priority: 5
Submitted by: tozz
Assigned to : none
Summary: Plot function in API - Default font not TTF

Details: font - type 2/FF_FONT1 doesn't allow arbitrary angle text in charts. When trying to display Hourly Statistics chart using the Example.

Changing the following in API.php fixed the issue.

    //$parameters['font']       = isset($parameters['font'])       ? $parameters['font']       : FF_FONT1;
    $parameters['font']       = isset($parameters['font'])       ? $parameters['font']       : FF_ARIAL;

Perhaps graph.php is a better place for this?
Adding this works as well as there is no entry in here to set the font.

'font'      => isset($_GET['font'])      ? $_GET['font']      : TTF_ARIAL,
'height'    => isset($_GET['height'])    ? $_GET['height']    : 480



For detailed info, follow this link:
http://developer.berlios.de/bugs/?func=detailbug&bug_id=5062&group_id=2025