note 12692 rejected from function.imagettftext by didou

From: Date: Sun, 27 Jul 2003 16:29:07 +0000
Subject: note 12692 rejected from function.imagettftext by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-52764@lists.php.net to get a copy of this message
Note Submitter: cchsieh@gagazone.net ---- Patch for 4.0.4pl1 ext/gd/gdttf.c Modified mainly for Chinese Big5 TTF 1. Get correct Chinese words from TTF 2. Deal with double-byte chinese words and single-byte english words $diff gdttf.c.orig gdttf.c 690c690 < ch = (ch * 256) + **next; --- > ch = (ch * 256) + ((**next) & 255); 705c705,709 < *advance = glyph->metrics.advance; --- > > if ( !font->have_char_map_Unicode && (ch < 161) ) > *advance = glyph->metrics.advance / 2; > else > *advance = glyph->metrics.advance;

« previous php.notes (#52764) next »