note 65401 deleted from function.imagettftext by danbrown

From: Date: Mon, 03 Dec 2012 22:21:23 +0000
Subject: note 65401 deleted from function.imagettftext by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-192263@lists.php.net to get a copy of this message
Note Submitter: admin at sgssweb dot com ---- I wrote two classes: PHP Abstract Drawing Toolkit and PHP Graphics, the elements of PHP Font Image Generator2. An instance of the class Graphics can draw multi-sampling antialiased text, 7 horizontal alignment of text box (left, center, right, left-adjust, center-adjust, right-adjust, adjust), 3 vertical alignment (top, middle, bottom), and other Java-like methods. <?php require_once "package.graphics.php"; $canvas = new Canvas(); $canvas->setSize(400, 400); $g =& $canvas->getGraphics(); $g->setColor(new Color(0xffffff)); $g->fill(); $g->setColor(new Color(0, 0, 0, 80)); $g->setFont(new Font($_POST['font'], 20)); $g->drawString($_POST['text'], 0, 0, 400, 400, 'center-adjust', 'middle'); $canvas->complete(); $canvas->output(); ?> The class script is here. http://sgssweb.com/experiments/?file=PHPFontImageGenerator2

« previous php.notes (#192263) next »