#23527 [NEW]: PostScript Type 1 font do not render properly
| From: | nid at home dot se | Date: | Wed, 07 May 2003 13:52:58 +0000 |
| Subject: | #23527 [NEW]: PostScript Type 1 font do not render properly | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-39231@lists.php.net to get a copy of this message | ||
From: nid at home dot se
Operating system: Linux Slackware 8
PHP version: 4.3.1
PHP Bug Type: GD related
Bug description: PostScript Type 1 font do not render properly
When installing PHP 4.3.x GD/t1lib stops behave properly. When showing a
PS1-type font in an image, some characters get the wrong size.
When downgrading to PHP 4.2.3 the problem went away.
Using the bundled version of GD did not make any difference. Tried with
bundled (4.3.x) and GD 2.0.8 (both with 4.3.x and 4.2.x).
The steps I went through are:
1. loading the font with imagepsloadfont('AkzGBS20.pfb');
2. Encoding the font with imagepsencodefont('8859.enc'); (even tried
without this)
3. Executed this command:
imagepstext($img,$text,$font_1,$size,$fg_color,$bg_color,$x,$y,$space,$tight,$angle,$antialias);
4. Imagepng()
variables:
$size = 12, $space = 0, $angle = 0, $antialias = 16
The code was run with the same source on 4.2.3, 4.3.0 and 4.3.1, and the
problem started occuring on 4.3.0.
The font did have access to .afm-file, but it did not make any
difference.
The font-file can be located at:
http://www.delta-projects.com/AkzGBS20.pfb
--
Edit bug report at http://bugs.php.net/?id=23527&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23527&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23527&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23527&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23527&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23527&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23527&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23527&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23527&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23527&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23527&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23527&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23527&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23527&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23527&r=gnused