[PHP-DEV] Bug #12064 Updated: Truetype functions can't locate fonts

2001-07-23 Thread dbeu

ID: 12064
Updated by: dbeu
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Closed
Bug Type: GD related
Operating System: Windows 2000 SP1
PHP Version: 4.0.6
New Comment:

already fixed in cvs.

Previous Comments:


[2001-07-22 19:22:09] [EMAIL PROTECTED]

That would take a good look at the source code to see how PHP is passing arguments to 
the GD library.



[2001-07-22 19:20:16] [EMAIL PROTECTED]

Fixing "null" status.

So, is this a GD Bug, or a PHP bug?



[2001-07-12 17:34:06] [EMAIL PROTECTED]

Ok, I checked out filemon.
Here's what's happening:
GD first tries to open files inside the Apache root (not the web root; for instance, 
on my box, C:\Program Files\Apache. So, if I've specified "C:\\path\\to\\font.ttf" in 
my path, I end up with:
C:\Program Files\Apache\C\C:\path\to\font.ttf.ttf

Next, it tries the current directory. However, it seems to be unable to process 
Windows drive letters, and so defaults to drive C: (my webroot's on D:, which is a 
problem), so I get
C:\path\to\script\C:\path\to\font.ttf.ttf

You get the idea. I made a directory structure on C: mimicing that of my D: webroot, 
but only containing the fonts; it worked fine (although the antialiasing was horrific, 
but that's a GD/FT2 issue).




[2001-07-12 17:18:32] [EMAIL PROTECTED]

Pretty sure, but it doesn't work the other way around either.



[2001-07-12 16:08:57] [EMAIL PROTECTED]

Are you sure that GD understands d:/path/to/font.ttf as a path?
Should it be d:\\path\\to\\font.ttf ?

--Wez.



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=12064


Edit this bug report at http://bugs.php.net/?id=12064&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12064 Updated: Truetype functions can't locate fonts

2001-07-22 Thread ben

ID: 12064
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: GD related
Operating System: Windows 2000 SP1
PHP Version: 4.0.6
New Comment:

That would take a good look at the source code to see how PHP is passing arguments to 
the GD library.

Previous Comments:


[2001-07-22 19:20:16] [EMAIL PROTECTED]

Fixing "null" status.

So, is this a GD Bug, or a PHP bug?



[2001-07-12 17:34:06] [EMAIL PROTECTED]

Ok, I checked out filemon.
Here's what's happening:
GD first tries to open files inside the Apache root (not the web root; for instance, 
on my box, C:\Program Files\Apache. So, if I've specified "C:\\path\\to\\font.ttf" in 
my path, I end up with:
C:\Program Files\Apache\C\C:\path\to\font.ttf.ttf

Next, it tries the current directory. However, it seems to be unable to process 
Windows drive letters, and so defaults to drive C: (my webroot's on D:, which is a 
problem), so I get
C:\path\to\script\C:\path\to\font.ttf.ttf

You get the idea. I made a directory structure on C: mimicing that of my D: webroot, 
but only containing the fonts; it worked fine (although the antialiasing was horrific, 
but that's a GD/FT2 issue).




[2001-07-12 17:18:32] [EMAIL PROTECTED]

Pretty sure, but it doesn't work the other way around either.



[2001-07-12 16:08:57] [EMAIL PROTECTED]

Are you sure that GD understands d:/path/to/font.ttf as a path?
Should it be d:\\path\\to\\font.ttf ?

--Wez.



[2001-07-12 16:00:10] [EMAIL PROTECTED]

please use filemon (www.sysinternals.com) to find out where php/gd is searching for 
the fonts, and report back.

thanks.



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=12064


Edit this bug report at http://bugs.php.net/?id=12064&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12064 Updated: Truetype functions can't locate fonts

2001-07-22 Thread joey

ID: 12064
Updated by: joey
Reported By: [EMAIL PROTECTED]
Old Status: 
Status: Feedback
Bug Type: GD related
Operating System: Windows 2000 SP1
PHP Version: 4.0.6
New Comment:

Fixing "null" status.

So, is this a GD Bug, or a PHP bug?

Previous Comments:


[2001-07-12 17:34:06] [EMAIL PROTECTED]

Ok, I checked out filemon.
Here's what's happening:
GD first tries to open files inside the Apache root (not the web root; for instance, 
on my box, C:\Program Files\Apache. So, if I've specified "C:\\path\\to\\font.ttf" in 
my path, I end up with:
C:\Program Files\Apache\C\C:\path\to\font.ttf.ttf

Next, it tries the current directory. However, it seems to be unable to process 
Windows drive letters, and so defaults to drive C: (my webroot's on D:, which is a 
problem), so I get
C:\path\to\script\C:\path\to\font.ttf.ttf

You get the idea. I made a directory structure on C: mimicing that of my D: webroot, 
but only containing the fonts; it worked fine (although the antialiasing was horrific, 
but that's a GD/FT2 issue).




[2001-07-12 17:18:32] [EMAIL PROTECTED]

Pretty sure, but it doesn't work the other way around either.



[2001-07-12 16:08:57] [EMAIL PROTECTED]

Are you sure that GD understands d:/path/to/font.ttf as a path?
Should it be d:\\path\\to\\font.ttf ?

--Wez.



[2001-07-12 16:00:10] [EMAIL PROTECTED]

please use filemon (www.sysinternals.com) to find out where php/gd is searching for 
the fonts, and report back.

thanks.



[2001-07-12 15:40:36] [EMAIL PROTECTED]

Rasmus:

  I did some reading through the GD docs; it seems that GD uses an environment 
variable called GDFONTPATH to locate its fonts when no path is specified (this seems 
to imply that the proper extension would also be appended). However, setting this 
properly did not work. The documentation also says that a full path will be accepted 
(with .ttf ending) if specified as a parameter.

  Seems like a problem with the way PHP is passing the string, perhaps. I would play 
with the source, but I don't have a compiler for this environment right now; it seems 
that people are not having this problem on Unices, so I won't bother looking there.

Any clue?

Thanks,
Ben



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=12064


Edit this bug report at http://bugs.php.net/?id=12064&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12064 Updated: Truetype functions can't locate fonts

2001-07-12 Thread wez

ID: 12064
Updated by: wez
Reported By: [EMAIL PROTECTED]
Old Summary: Truetype functions can't locate fonts
Status: Feedback
Bug Type: GD related
Operating System: Windows 2000 SP1
PHP Version: 4.0.6
New Comment:

Are you sure that GD understands d:/path/to/font.ttf as a path?
Should it be d:\\path\\to\\font.ttf ?

--Wez.

Previous Comments:


[2001-07-12 16:00:10] [EMAIL PROTECTED]

please use filemon (www.sysinternals.com) to find out where php/gd is searching for 
the fonts, and report back.

thanks.



[2001-07-12 15:40:36] [EMAIL PROTECTED]

Rasmus:

  I did some reading through the GD docs; it seems that GD uses an environment 
variable called GDFONTPATH to locate its fonts when no path is specified (this seems 
to imply that the proper extension would also be appended). However, setting this 
properly did not work. The documentation also says that a full path will be accepted 
(with .ttf ending) if specified as a parameter.

  Seems like a problem with the way PHP is passing the string, perhaps. I would play 
with the source, but I don't have a compiler for this environment right now; it seems 
that people are not having this problem on Unices, so I won't bother looking there.

Any clue?

Thanks,
Ben



[2001-07-12 14:36:33] [EMAIL PROTECTED]

No idea about the Windows version, but on UNIX the new GD2 library is hardcoded to 
look for TTF fonts in /usr/share/fonts/truetype.  Also, it automatically adds the .ttf 
extension itself so in your code you should not put the .ttf extension on your font.



[2001-07-11 15:03:28] [EMAIL PROTECTED]

The GD TrueType functions can't find fonts; relative paths and absolute paths both do 
not work.

Example (font is in the local directory, and . is part of my php.ini include_path)

(written off the top of my head, it's in a larger script, but test scripts I wrote and 
unfortunately deleted don't work either)

PHP reports: Warning: Could not find/open font in d:\path\to\fonttest.php on line 3

This is from the binary Win32 distribution of PHP 4.0.6 on php.net.





Edit this bug report at http://bugs.php.net/?id=12064&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12064 Updated: Truetype functions can't locate fonts

2001-07-12 Thread dbeu

ID: 12064
Updated by: dbeu
Reported By: [EMAIL PROTECTED]
Old Summary: Truetype functions can't locate fonts
Old Status: 
Status: Feedback
Bug Type: GD related
Operating System: Windows 2000 SP1
PHP Version: 4.0.6
New Comment:

please use filemon (www.sysinternals.com) to find out where php/gd is searching for 
the fonts, and report back.

thanks.

Previous Comments:


[2001-07-12 15:40:36] [EMAIL PROTECTED]

Rasmus:

  I did some reading through the GD docs; it seems that GD uses an environment 
variable called GDFONTPATH to locate its fonts when no path is specified (this seems 
to imply that the proper extension would also be appended). However, setting this 
properly did not work. The documentation also says that a full path will be accepted 
(with .ttf ending) if specified as a parameter.

  Seems like a problem with the way PHP is passing the string, perhaps. I would play 
with the source, but I don't have a compiler for this environment right now; it seems 
that people are not having this problem on Unices, so I won't bother looking there.

Any clue?

Thanks,
Ben



[2001-07-12 14:36:33] [EMAIL PROTECTED]

No idea about the Windows version, but on UNIX the new GD2 library is hardcoded to 
look for TTF fonts in /usr/share/fonts/truetype.  Also, it automatically adds the .ttf 
extension itself so in your code you should not put the .ttf extension on your font.



[2001-07-11 15:03:28] [EMAIL PROTECTED]

The GD TrueType functions can't find fonts; relative paths and absolute paths both do 
not work.

Example (font is in the local directory, and . is part of my php.ini include_path)

(written off the top of my head, it's in a larger script, but test scripts I wrote and 
unfortunately deleted don't work either)

PHP reports: Warning: Could not find/open font in d:\path\to\fonttest.php on line 3

This is from the binary Win32 distribution of PHP 4.0.6 on php.net.





Edit this bug report at http://bugs.php.net/?id=12064&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12064 Updated: Truetype functions can't locate fonts

2001-07-12 Thread ben

ID: 12064
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Summary: Truetype functions can't locate fonts
Old Status: 
Status: Open
Bug Type: GD related
Operating System: Windows 2000 SP1
PHP Version: 4.0.6
New Comment:

Ok, I checked out filemon.
Here's what's happening:
GD first tries to open files inside the Apache root (not the web root; for instance, 
on my box, C:\Program Files\Apache. So, if I've specified "C:\\path\\to\\font.ttf" in 
my path, I end up with:
C:\Program Files\Apache\C\C:\path\to\font.ttf.ttf

Next, it tries the current directory. However, it seems to be unable to process 
Windows drive letters, and so defaults to drive C: (my webroot's on D:, which is a 
problem), so I get
C:\path\to\script\C:\path\to\font.ttf.ttf

You get the idea. I made a directory structure on C: mimicing that of my D: webroot, 
but only containing the fonts; it worked fine (although the antialiasing was horrific, 
but that's a GD/FT2 issue).


Previous Comments:


[2001-07-12 17:18:32] [EMAIL PROTECTED]

Pretty sure, but it doesn't work the other way around either.



[2001-07-12 16:08:57] [EMAIL PROTECTED]

Are you sure that GD understands d:/path/to/font.ttf as a path?
Should it be d:\\path\\to\\font.ttf ?

--Wez.



[2001-07-12 16:00:10] [EMAIL PROTECTED]

please use filemon (www.sysinternals.com) to find out where php/gd is searching for 
the fonts, and report back.

thanks.



[2001-07-12 15:40:36] [EMAIL PROTECTED]

Rasmus:

  I did some reading through the GD docs; it seems that GD uses an environment 
variable called GDFONTPATH to locate its fonts when no path is specified (this seems 
to imply that the proper extension would also be appended). However, setting this 
properly did not work. The documentation also says that a full path will be accepted 
(with .ttf ending) if specified as a parameter.

  Seems like a problem with the way PHP is passing the string, perhaps. I would play 
with the source, but I don't have a compiler for this environment right now; it seems 
that people are not having this problem on Unices, so I won't bother looking there.

Any clue?

Thanks,
Ben



[2001-07-12 14:36:33] [EMAIL PROTECTED]

No idea about the Windows version, but on UNIX the new GD2 library is hardcoded to 
look for TTF fonts in /usr/share/fonts/truetype.  Also, it automatically adds the .ttf 
extension itself so in your code you should not put the .ttf extension on your font.



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=12064


Edit this bug report at http://bugs.php.net/?id=12064&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12064 Updated: Truetype functions can't locate fonts

2001-07-12 Thread ben

ID: 12064
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Summary: Truetype functions can't locate fonts
Status: Feedback
Bug Type: GD related
Operating System: Windows 2000 SP1
PHP Version: 4.0.6
New Comment:

Pretty sure, but it doesn't work the other way around either.

Previous Comments:


[2001-07-12 16:08:57] [EMAIL PROTECTED]

Are you sure that GD understands d:/path/to/font.ttf as a path?
Should it be d:\\path\\to\\font.ttf ?

--Wez.



[2001-07-12 16:00:10] [EMAIL PROTECTED]

please use filemon (www.sysinternals.com) to find out where php/gd is searching for 
the fonts, and report back.

thanks.



[2001-07-12 15:40:36] [EMAIL PROTECTED]

Rasmus:

  I did some reading through the GD docs; it seems that GD uses an environment 
variable called GDFONTPATH to locate its fonts when no path is specified (this seems 
to imply that the proper extension would also be appended). However, setting this 
properly did not work. The documentation also says that a full path will be accepted 
(with .ttf ending) if specified as a parameter.

  Seems like a problem with the way PHP is passing the string, perhaps. I would play 
with the source, but I don't have a compiler for this environment right now; it seems 
that people are not having this problem on Unices, so I won't bother looking there.

Any clue?

Thanks,
Ben



[2001-07-12 14:36:33] [EMAIL PROTECTED]

No idea about the Windows version, but on UNIX the new GD2 library is hardcoded to 
look for TTF fonts in /usr/share/fonts/truetype.  Also, it automatically adds the .ttf 
extension itself so in your code you should not put the .ttf extension on your font.



[2001-07-11 15:03:28] [EMAIL PROTECTED]

The GD TrueType functions can't find fonts; relative paths and absolute paths both do 
not work.

Example (font is in the local directory, and . is part of my php.ini include_path)

(written off the top of my head, it's in a larger script, but test scripts I wrote and 
unfortunately deleted don't work either)

PHP reports: Warning: Could not find/open font in d:\path\to\fonttest.php on line 3

This is from the binary Win32 distribution of PHP 4.0.6 on php.net.





Edit this bug report at http://bugs.php.net/?id=12064&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12064 Updated: Truetype functions can't locate fonts

2001-07-12 Thread ben

ID: 12064
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Summary: Truetype functions can't locate fonts
Status: Analyzed
Bug Type: GD related
Operating System: Windows 2000 SP1
PHP Version: 4.0.6
New Comment:

Rasmus:

  I did some reading through the GD docs; it seems that GD uses an environment 
variable called GDFONTPATH to locate its fonts when no path is specified (this seems 
to imply that the proper extension would also be appended). However, setting this 
properly did not work. The documentation also says that a full path will be accepted 
(with .ttf ending) if specified as a parameter.

  Seems like a problem with the way PHP is passing the string, perhaps. I would play 
with the source, but I don't have a compiler for this environment right now; it seems 
that people are not having this problem on Unices, so I won't bother looking there.

Any clue?

Thanks,
Ben

Previous Comments:


[2001-07-12 14:36:33] [EMAIL PROTECTED]

No idea about the Windows version, but on UNIX the new GD2 library is hardcoded to 
look for TTF fonts in /usr/share/fonts/truetype.  Also, it automatically adds the .ttf 
extension itself so in your code you should not put the .ttf extension on your font.



[2001-07-11 15:03:28] [EMAIL PROTECTED]

The GD TrueType functions can't find fonts; relative paths and absolute paths both do 
not work.

Example (font is in the local directory, and . is part of my php.ini include_path)

(written off the top of my head, it's in a larger script, but test scripts I wrote and 
unfortunately deleted don't work either)

PHP reports: Warning: Could not find/open font in d:\path\to\fonttest.php on line 3

This is from the binary Win32 distribution of PHP 4.0.6 on php.net.





Edit this bug report at http://bugs.php.net/?id=12064&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12064 Updated: Truetype functions can't locate fonts

2001-07-12 Thread rasmus

ID: 12064
Updated by: rasmus
Reported By: [EMAIL PROTECTED]
Old Summary: Truetype functions can't locate fonts
Old Status: Open
Status: Analyzed
Bug Type: GD related
Operating System: Windows 2000 SP1
PHP Version: 4.0.6
New Comment:

No idea about the Windows version, but on UNIX the new GD2 library is hardcoded to 
look for TTF fonts in /usr/share/fonts/truetype.  Also, it automatically adds the .ttf 
extension itself so in your code you should not put the .ttf extension on your font.

Previous Comments:


[2001-07-11 15:03:28] [EMAIL PROTECTED]

The GD TrueType functions can't find fonts; relative paths and absolute paths both do 
not work.

Example (font is in the local directory, and . is part of my php.ini include_path)

(written off the top of my head, it's in a larger script, but test scripts I wrote and 
unfortunately deleted don't work either)

PHP reports: Warning: Could not find/open font in d:\path\to\fonttest.php on line 3

This is from the binary Win32 distribution of PHP 4.0.6 on php.net.





Edit this bug report at http://bugs.php.net/?id=12064&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]