|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesbundled-libgd-non-bmp-entities (last revision 2010-03-05 16:24 UTC by aharvey@php.net)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-02-24 22:19 UTC] pajoye@php.net
[2010-02-24 22:19 UTC] pajoye@php.net
[2010-03-05 06:01 UTC] php-bugs at lists dot php dot net
[2010-03-05 06:38 UTC] aharvey@php.net
-Status: No Feedback
+Status: Bogus
[2010-03-05 06:38 UTC] aharvey@php.net
[2010-03-05 15:45 UTC] sharon_correll at sil dot org
[2010-03-05 15:55 UTC] pajoye@php.net
-Status: Bogus
+Status: Assigned
[2010-03-05 15:55 UTC] pajoye@php.net
[2010-03-05 17:23 UTC] aharvey@php.net
[2010-03-05 17:24 UTC] aharvey@php.net
[2010-11-04 00:11 UTC] sharon_correll at sil dot org
[2016-08-22 14:32 UTC] cmb@php.net
-Status: Assigned
+Status: Suspended
-Assigned To: tabe
+Assigned To: cmb
[2016-08-22 14:32 UTC] cmb@php.net
[2017-08-16 16:28 UTC] cmb@php.net
-Assigned To: cmb
+Assigned To:
[2023-07-11 13:53 UTC] sharon_correll at sil dot org
[2023-07-11 13:54 UTC] sharon_correll at sil dot org
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 12 10:00:01 2025 UTC |
Description: ------------ The imagettftext function doesn't not work for characters > 99999. For instance, U+1869F (99999) produces a null glyph for the font that I am using, but U+186A0 (100000) produces "𘚠". (I am actually using PHP version 5.2.6. Please tell me if upgrading is likely to fix this problem.) Reproduce code: --------------- $point_size = 32; $scratch_image = ImageCreateTrueColor( $point_size*10, $point_size*10); $origin_x = 2 * $point_size; $origin_y = 5 * $point_size; $white = ImageColorAllocate($scratch_image, 255, 255, 255); $black = ImageColorAllocate($scratch_image, 0, 0, 0); ImageFill( $scratch_image, 0, 0, $white ); $glyph_text = "𘚠"; // FILL IN THE FONT NAME WITH SOME FONT THAT YOU HAVE AVAILABLE: $box = imagettftext( $scratch_image, $point_size, 0, $origin_x, $origin_y, $black, "FONT.TTF, $glyph_text ); $final_image = imagecreatetruecolor( 300, 200 ); ImageFill( $final_image, 0, 0, $white ); imagecopymerge( $final_image, $scratch_image, 0, 0, $box[6], $box[7], 300, 200, 100 ); imagecolortransparent( $final_image, $white ); imagedestroy( $scratch_image ); imagepng( $final_image, "testbug.png" ); Expected result: ---------------- I expect the "testbug.png" file to show a "null" glyph (assuming the font doesn't have a glyph for U+186A0--I am using Code 2000 which has a wide range of Unicode characters, but not U+186A0.) Actual result: -------------- I see "𘚠" instead of the glyph.