php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login go to bug id or search bugs for
Request #17925 separate gd.fontpath ini setting and honor safe_mode
Submitted: 2002-06-22 13:12 UTC Modified: 2014-11-08 20:41 UTC
Votes: 4 4.0 ± 1.0 1 of 1 (100.0%) 0 (0.0%) 1 (100.0%)
From: mfischer@php.net Assigned:
Status: Wont fix Package: GD related
PHP Version: 4.0CVS-2002-06-22 OS: Any
Private report: No CVE-ID: None
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.

[2002-06-22 13:12 UTC] mfischer@php.net
A new ini setting for setting a permanent font path should be introduced. Using putenv("GDFONTPATH=.."); is not a nice way. Now that it's bundled we can properly fix this.

gd.fontpath = c:\somewhere\over;f:\the\rainbow

This should be settable by the user too, e.g. ini_set().

If gd.fontpath is NOT set it should default to c:\winnt\fonts on win32 and /usr/share/fonts/truetype on unix systems.

Also safe_mode setting should be honored if ttf file's are accessed, e.g. no ini_set() to change the gd.fontpath from the mater value and no support for absolute paths (but should be supported in non-safe_mode).

The fontname should either be a fontname with or without the trailing .ttf extension. If it's not provided, it should also try to load it with .ttf .


## History

We are sorry, but we can not support PHP 4 related problems anymore.