php.net |  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

Patches

Pull Requests

History

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

--Jani

 [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] sniper@php.net
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 http://www.php4win.com/

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 18:01:31 2024 UTC