Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9099 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50173 invoked by uid 1010); 13 Apr 2004 06:10:22 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 50036 invoked from network); 13 Apr 2004 06:10:20 -0000 Received: from unknown (HELO mail.zend.com) (192.117.235.230) by pb1.pair.com with SMTP; 13 Apr 2004 06:10:20 -0000 Received: (qmail 27405 invoked from network); 13 Apr 2004 06:10:12 -0000 Received: from localhost (HELO AndiNotebook.zend.com) (127.0.0.1) by localhost with SMTP; 13 Apr 2004 06:10:12 -0000 Message-ID: <5.1.0.14.2.20040413090826.039717b0@127.0.0.1> X-Sender: andi@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Tue, 13 Apr 2004 09:09:46 +0300 To: Friedhelm Betz ,internals@lists.php.net In-Reply-To: <200404122228.12911.holliwell@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] [patch] gd.h windows font path From: andi@zend.com (Andi Gutmans) References: <200404122228.12911.holliwell@gmx.net> At 10:28 PM 4/12/2004 +0200, Friedhelm Betz wrote: >Hi, >attached patches add c:\windows\fonts to DEFAULT_FONTPATH. >c:\windows\fonts is the standard for Windows 98 and windows XP. >Maybe a more sophisticated solution would use getenv("windir")? Yeah, I think the best fix would be to change the fontFetch() function to look for the fonts in getenv("windir")+"/fonts" instead of hardcoding the dir names. I'm sure there are some weird people who call their windows installation neither by winnt nor windows. Andi