#34340 [Opn->Fbk]: imagepstext returns T1Lib Error: Font ID Invalid in this Context
| From: | sniper@php.net | Date: | Fri, 02 Sep 2005 05:23:29 +0000 |
| Subject: | #34340 [Opn->Fbk]: imagepstext returns T1Lib Error: Font ID Invalid in this Context | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-84345@lists.php.net to get a copy of this message | ||
ID: 34340
Updated by: sniper@php.net
Reported By: brian at visionn dot com
-Status: Open
+Status: Feedback
Bug Type: GD related
Operating System: Windows NT
PHP Version: 5.1.0RC1
New Comment:
Provide a SHORT reproducing script. You don't need to define any
functions, etc. to test this. (6 lines?)
Previous Comments:
------------------------------------------------------------------------
[2005-09-02 02:23:48] brian at visionn dot com
Description:
------------
When calling imagepstext() on a .pfb file on Windows NT, I get returned
"T1Lib Error: Font ID Invalid in this Context". The font file seems to
load fine with imagepsloadfont() (returns resource identifier), but
when used within imagepstext it doesn't seem to be working properly. Am
I using an invalid font file? Line endings? Something to do with Windows
directory permissions? Like I said, the load works fine to return a
resource...
Reproduce code:
---------------
http://test.taxloopholes.com/font_test.php
Expected result:
----------------
An image tag returned that will show an image dynamically generated
showing the text passed to the function.
Actual result:
--------------
2 : imagepstext() [function.imagepstext]: T1Lib Error: Font ID Invalid
in this Context
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34340&edit=1