#26901 [Opn->Fbk]: Imagettftext(). Some chars prints as square even though they exist in .ttf file
| From: | sniper@php.net | Date: | Fri, 16 Jan 2004 14:12:35 +0000 |
| Subject: | #26901 [Opn->Fbk]: Imagettftext(). Some chars prints as square even though they exist in .ttf file | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-53430@lists.php.net to get a copy of this message | ||
ID: 26901
Updated by: sniper@php.net
Reported By: jpg at pmers dot net
-Status: Open
+Status: Feedback
Bug Type: GD related
Operating System: Linux
PHP Version: 4.3.4
New Comment:
Provide the script downloadadble somewhere.
Previous Comments:
------------------------------------------------------------------------
[2004-01-15 06:37:06] jpg at pmers dot net
I'm not sure if I understand what you mean, I have added the following
code:
setlocale(LC_ALL, 'cs_CZ');
Doesn't make any difference.
------------------------------------------------------------------------
[2004-01-14 19:48:10] iliaa@php.net
Have you tried exporting Czech locale before creating the
image?
------------------------------------------------------------------------
[2004-01-14 11:08:45] jpg at pmers dot net
example output: http://ccres.net/char_test.php
------------------------------------------------------------------------
[2004-01-14 09:54:19] jpg at pmers dot net
<?php
$im = imagecreate(450,200);
if ($im=="") { die("Error creating image"); }
$bg_color = imagecolorallocate ($im, 255, 255, 255);
$black = imagecolorallocate($im,0,0,0);
$ttf_tahoma = "[your_path]/ttf/tahoma.ttf"; // edit this
imagettftext($im, 11, 0, 10, 20, $black, $ttf_tahoma, "Example of chars
are: and (Czech language)");
ImagePNG($im);
ImageDestroy($im);
?>
------------------------------------------------------------------------
[2004-01-14 09:17:53] iliaa@php.net
Please supply the shortest possible script that can be used
to replicate the problem and the font file in question.
------------------------------------------------------------------------
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/26901
--
Edit this bug report at http://bugs.php.net/?id=26901&edit=1