note 108536 added to function.imagettfbbox

From: Date: Fri, 04 May 2012 13:29:04 +0000
Subject: note 108536 added to function.imagettfbbox
Groups: php.notes 
Request: Send a blank email to php-notes+get-187474@lists.php.net to get a copy of this message
It seems to be worth pointing out that the "points" unit GD2 is using corresponds to 96 dpi, as defined in gd.h: #define GD_RESOLUTION 96 /* pixels per inch */ So if you want to translate the bbox back to font points, you need to multiply all coordinates by 72/96 = 3/4. ---- Server IP: 87.106.1.137 Probable Submitter: 217.251.210.56 ---- Manual Page -- http://www.php.net/manual/en/function.imagettfbbox.php Edit -- https://master.php.net/note/edit/108536 Del: integrated -- https://master.php.net/note/delete/108536/integrated Del: useless -- https://master.php.net/note/delete/108536/useless Del: bad code -- https://master.php.net/note/delete/108536/bad+code Del: spam -- https://master.php.net/note/delete/108536/spam Del: non-english -- https://master.php.net/note/delete/108536/non-english Del: in docs -- https://master.php.net/note/delete/108536/in+docs Del: other reasons-- https://master.php.net/note/delete/108536 Reject -- https://master.php.net/note/reject/108536 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#187474) next »