[patch] gd.h windows font path

php.internals

Friedhelm Betz

22 years ago
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")? Regards Friedhelm

Derick Rethans

22 years ago
On Mon, 12 Apr 2004, Friedhelm Betz wrote:
> 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")?
Committed, thanks. Derick

Andi Gutmans

22 years ago
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

Olivier Hill

22 years ago
Andi Gutmans wrote:
> > 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.
Or more commonly, installing 2 versions of Windows (ie: XP and 98). The recommanded Microsoft way is to create 2 partitions. Thus, one will be in D:\windows\fonts (or D:\winnt\fonts). Olivier
-- GB/E/IT d+ s+:+ a-- C++$ UL++++$ P++++ L+++$ E- W++$ N- ?o ?K w--(---) !O M+$ V- PS+ PE- Y PGP t++ 5-- X+@ R- tv++ b++(+++) DI++++ D+ G++ e+>++ h(*) r y+(?)