[Pkg-gmagick-im-team] Bug#680928: Bug#680928: Imagmagick convert UTF8 non breaking space
roucaries bastien
roucaries.bastien+debian at gmail.com
Mon Jul 9 14:22:33 UTC 2012
On Mon, Jul 9, 2012 at 4:17 PM, roucaries bastien
<roucaries.bastien+debian at gmail.com> wrote:
> On Mon, Jul 9, 2012 at 4:13 PM, Matt Cockayne <matt at zucchi.co.uk> wrote:
>> The source of the fix is not specified as a specific patch file. And I am
>> unable to identify the exact fix implemented
>>
>> Looking at the changelog and the dates/versions involved I would ascertain
>> that the fix was applied somewhere between commits
>>
>> 1497 - 1503
>>
>> http://trac.imagemagick.org/timeline?from=03%2F18%2F10&daysback=0&authors=&milestone=on&ticket=on&changeset=on&wiki=on&update=Update
>>
>
> Unfortunatly no change has action on utf8. only animate and some exotic coders.
Care to test the only change:
--- a/coders/caption.c
+++ b/coders/caption.c
@@ -162,8 +162,9 @@ static Image *ReadCAPTIONImage(const ImageInfo *image_info,
if (draw_info->gravity == UndefinedGravity)
(void) CloneString(&draw_info->geometry,geometry);
status=GetMultilineTypeMetrics(image,draw_info,&metrics);
- width=(unsigned long) (metrics.width+draw_info->stroke_width+0.5);
- height=(unsigned long) (metrics.height+draw_info->stroke_width+0.5);
+ width=(unsigned long) floor(metrics.width+draw_info->stroke_width+0.5);
+ height=(unsigned long) floor(metrics.height+draw_info->stroke_width+
+ 0.5);
if ((width > (image->columns+1)) || (height > (image->rows+1)))
break;
draw_info->pointsize*=2.0;
@@ -180,8 +181,9 @@ static Image *ReadCAPTIONImage(const ImageInfo *image_info,
if (draw_info->gravity == UndefinedGravity)
(void) CloneString(&draw_info->geometry,geometry);
status=GetMultilineTypeMetrics(image,draw_info,&metrics);
- width=(unsigned long) (metrics.width+draw_info->stroke_width+0.5);
- height=(unsigned long) (metrics.height+draw_info->stroke_width+0.5);
+ width=(unsigned long) floor(metrics.width+draw_info->stroke_width+0.5);
+ height=(unsigned long) floor(metrics.height+draw_info->stroke_width+
+ 0.5);
if ((width > (image->columns+1)) || (height > (image->rows+1)))
break;
draw_info->pointsize++;
More information about the Pkg-gmagick-im-team
mailing list