From 0a41cf0f2e7d92e161ed9e80aed24542b71d1129 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 8 Jul 2008 14:47:23 +0000 Subject: [PATCH] - test for PostScript driver git-svn-id: https://svn.php.net/repository/pear/packages/Image_Canvas/trunk@262270 c90b9560-bf6c-de11-be94-00142212c4b1 --- tests/ps.php | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 tests/ps.php diff --git a/tests/ps.php b/tests/ps.php new file mode 100644 index 0000000..2c9137e --- /dev/null +++ b/tests/ps.php @@ -0,0 +1,39 @@ + + * @copyright Copyright (C) 2003, 2004 Jesper Veggerby Hansen + * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 + * @version CVS: $Id$ + * @link http://pear.php.net/package/Image_Canvas + */ + +// SPECIFY HERE WHERE A TRUETYPE FONT CAN BE FOUND +$testFont = 'c:/windows/fonts/Arial.ttf'; + +require_once 'Image/Canvas.php'; + +$canvas =& Image_Canvas::factory('ps', array('page' => 'A4', 'align' => 'center', 'width' => 600, 'height' => 600, 'filename'=>'testps.ps')); + +require_once './canvas_body.php'; + +?>