|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-01-01 00:53 UTC] jani@php.net
-Summary: PHP should have a separate gd.fontpath ini setting
and honor safe_mode
+Summary: separate gd.fontpath ini setting and honor safe_mode
-Package: Feature/Change Request
+Package: GD related
[2014-11-08 07:03 UTC] remi@php.net
-Status: Open
+Status: Wont fix
[2014-11-08 07:03 UTC] remi@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 13:00:01 2025 UTC |
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 .