DEFAULT_FONTPATH in gd.h and gdft.c
If DEFAULT_FONTPATH
is not set when building (and it's not from CMakeLists.txt) it is set in the code in two places, in gd.h and gdft.c (actually the latter is never used, because gd.h already has set it.). I'd like to add a reasonable default value for Windows, but it would be good to first move everything to one place. Any thoughts?
Comments (4)
-
-
reporter I took default values for Windows from
Makefile.win32
and merged defines from gd.h and gdft.c: https://bitbucket.org/wojdyr/gd-libgd-fork/commits/c3aca1aba6467a7180976c49c49e71d6fe4a573f?at=fontpathI tried to make pull request, but another unrelated commit is getting into it. That commit is in PR #6, so I'll wait with this one. I don't have much experience with PRs, I created my first a few days ago here :)
-
reporter - changed status to resolved
Thanks for merging PR 7
-
thanks for your for the patch!
Btw, autoconf works fine now, in case you use it on linux too.
- Log in to comment
Agreed, also we should better expose GDFONTPATH too :)
You can take a look at the PHP's one, afair I set it to windows font dirs.