php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17437 GD TT Fonts larger then defined
Submitted: 2002-05-26 13:59 UTC Modified: 2002-08-06 01:00 UTC
Votes:2
Avg. Score:3.5 ± 0.5
Reproduced:1 of 2 (50.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: kcs at xkcs dot com Assigned:
Status: No Feedback Package: GD related
PHP Version: 4.2.1 OS: Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: kcs at xkcs dot com
New email:
PHP Version: OS:

 

 [2002-05-26 13:59 UTC] kcs at xkcs dot com
This problem surfaced after upgrading from PHP 4.0.4 to 4.2.1.

I'm using PHP + GD + Freetype to pruduce 5 PNG pictures for a menu on my site.  The fonts are defined in the script as 12 point.  But the output produces about 18 point.  PHP 4.0.4 did not have this bug.  I've even tried 4.0.4 to 4.1.2 and I get the same problem.

freetype version: 2.0.9-2
gd version: 1.8.3-7

I have scoured the web looking for the answer and I have come up with nothing except:

http://www.aditus.nu/jpgraph/jpg_faq.php

mentions the problem I am having but does not state why or how to fix it.  Search the above page for "larger".  

Thanks,
Brad

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-26 14:24 UTC] derick@php.net
I was under the impression that this was a freetype related thing. Try downgrading to freetype 1.x and see if the problem is solved then.

Derick
 [2002-08-05 05:02 UTC] shelley at intermax dot nl
I wanted to add that we recently encountered the problem Brad describes and were able to determine that it is not a Freetype related thing as Derick suggests.

We are running PHP 4.0.6/GD 1.6.2/Freetype 1.3 on a Solaris machine, which contains a number of sites with dynamically generated menu images. Two weeks ago we moved one of these sites to a new Linux server with PHP 4.1.2/GD 1.6.2/Freetype 1.3 installed. 

The dynamically generated menu images were immediately much larger than those on the original server even though the code had not been touched. Note that the versions of GD and Freetype were identical. We also checked to make sure the font file itself was exactly the same.

Replacing PHP 4.1.2 with version 4.0.6 immediately resolved the problem.

Hope this helps,
Shelley
 [2002-08-06 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Nov 23 13:01:29 2024 UTC