FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Using imagettfbbox with Arial Bold
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Using imagettfbbox with Arial Bold [message #173277 is a reply to message #173273] Fri, 01 April 2011 07:26 Go to previous messageGo to previous message
alvaro.NOSPAMTHANX is currently offline  alvaro.NOSPAMTHANX
Messages: 277
Registered: September 2010
Karma:
Senior Member
El 01/04/2011 5:49, jwcarlton escribió/wrote:
>> Why can't you compare GD2 with CSS? Because they use different programs
>> to render the font, programs that do not even run on the same computer.
>> Furthermore, you have certain amount control about the server (until you
>> host upgrades PHP) but zero control about the browser.
>
> OK, that makes sense. What I don't get, though, is why it's not
> measuring correctly based on the way I've coded it? Like Natural said
> (below), isn't it the same library rendering it for the screen as is
> doing the measurement?

You never said that you are comparing the output of imagettfbbox() with
a real picture of the font (PNG or something) generated with GD.
Actually, you suggested you are comparing it with the font as rendered
by the browser.

:-?



--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Firefox PHP error report
Next Topic: OpenSSL support => disabled (install ext/openssl)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 08:44:43 GMT 2024

Total time taken to generate the page: 0.03879 seconds