On Mon, 2003-02-03 at 08:51, Brian V Bonini wrote: > On Sun, 2003-02-02 at 20:50, Tom Rogers wrote:
never mind, I got it, I needed to specify a full path to the font file. > > Hi, > > > > Monday, February 3, 2003, 8:24:00 AM, you wrote: > > BVB> When creating an image using the image functions how do you control the > > BVB> type face size? > > > > If you are using imagestring() the size is determined by the font number (1 - 5) > > for internal fonts. If you use true type fonts then the size is set in each call to > > imagettftext() as one of the parameters. > > > > -- > > I noticed afterwords that imagettftext seemed to be the only reasonable > way to control the face and size however I do not seem to be able to get > it to work. Does this require extra libraries or ?? > > <?php > > $png = ImageCreate(306,35); > $bg = ImageColorAllocate($png,255,255,255); > $tx = ImageColorAllocate($png,52,155,103); > ImageFilledRectangle($png,0,0,200,200,$bg); > //ImageString($png,5,60,9,$text,$tx); > Imagettftext($png,30,0,60,9,$tx,'arial.ttf',$text); > > > header("content-type: image/png"); > ImagePng($png); > ?> > > ImageString works fine but Imagettftext, no go... No errors or anything > it just does not output the image. > > PHP Version 4.0.6 > './configure' '--with-apxs=/usr/local/www/bin/apxs' > '--with-config-file-path=/usr/local/www/etc' '--enable-versioning' > '--with-system-regex' '--disable-debug' '--enable-track-vars' > '--with-gd=/usr/local' '--with-freetype-dir=/usr/local' > '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local' '--with-zlib' > '--with-imap=/usr/local' '--with-mysql=/usr/local' > '--with-imap=/usr/local' '--prefix=/usr/local/www' 'i386--freebsd4.4' > > GD Support enabled > GD Version 1.6.2 or higher > FreeType Support enabled > FreeType Linkage with freetype > JPG Support enabled > PNG Support enabled > WBMP Support enabled > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- - -- Brian V Bonini -=gfx-Design=- [EMAIL PROTECTED] __________________________________________________ gfx-Design --Web Design and Hosting Services-- http://www.gfx-design.com http://www.gfxdesign.net [EMAIL PROTECTED] Phone:(757)623-1655 Fax:(425)675-3094 __________________________________________________ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php