From: brian at visionn dot com Operating system: Windows NT PHP version: 5.1.0RC1 PHP Bug Type: GD related Bug description: imagepstext returns T1Lib Error: Font ID Invalid in this Context
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 bug report at http://bugs.php.net/?id=34340&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34340&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34340&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34340&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34340&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34340&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34340&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34340&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34340&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34340&r=support Expected behavior: http://bugs.php.net/fix.php?id=34340&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34340&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34340&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34340&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34340&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34340&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34340&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34340&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34340&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34340&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34340&r=mysqlcfg