|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12902 trouble with TTF fonts
Submitted: 2001-08-22 11:33 UTC Modified: 2001-08-24 14:27 UTC
From: dmpavlov at hotbox dot ru Assigned:
Status: Closed Package: GD related
PHP Version: 4.0.6 OS: Win'Me
Private report: No CVE-ID: None
 [2001-08-22 11:33 UTC] dmpavlov at hotbox dot ru
I have troubles with loading any ttf fonts.
php reports general error with loading font & nothing more.

I use downloaded .exe version php 4.0.6
& gd lib 2.0.? (it was included in)

thank you & sorry for english ;)

 Dmitriy Pavlov


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-22 12:57 UTC]
This is fixed already. And you should also use the
whole paths to the fonts. 


 [2001-08-24 13:14 UTC] dmpavlov at hotbox dot ru
Yes. Problem doesn't appear in 4.0.4pl1 (I have tested same script, All is fine). Something is wrong with the last release (and may be the 4.0.5 - I don't know)

source string for better problem understanding...
ImageTTFText($im, 20, 90, 30, 200, $white, "d:/Times.ttf", $unistring);   
// "d:/Times.ttf" or "d:\\Times.ttf" ... doesn't matter, all results are equal ;(

 [2001-08-24 14:27 UTC]
This is still fixed. I should have mentioned that it's 
fixed in CVS. Thus you need to wait for next release.
Or grab a development build from


PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Sep 27 22:03:42 2022 UTC