# [patch] gd.h windows font path

- Thread: https://externals.io/message/9088
- Original archive: https://news-web.php.net/php.internals/9088
- Started by Friedhelm Betz on 2004-04-12T20:28:12+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #9088 — Friedhelm Betz — 2004-04-12T20:28:12+00:00

URL: https://externals.io/message/9088#9088

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

---

## #9092 — Derick Rethans — 2004-04-12T21:43:17+00:00

URL: https://externals.io/message/9088#9092 · In reply to: #9088

> 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

---

## #9099 — Andi Gutmans — 2004-04-13T06:09:46+00:00

URL: https://externals.io/message/9088#9099 · In reply to: #9088

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
