primitive_info->point.x,primitive_info->point.y);
clone_info->render=MagickFalse;
clone_info->text=AcquireString(token);
+ (void) ConcatenateString(&clone_info->text," ");
status&=GetTypeMetrics(image,clone_info,&metrics,exception);
clone_info=DestroyDrawInfo(clone_info);
cursor+=metrics.width;
next=(images != (Image *) NULL) ? images : image;
do
{
- (void) WriteBlobByte(image,icon_file.directory[scene].width);
- (void) WriteBlobByte(image,icon_file.directory[scene].height);
+ (void) WriteBlobByte(image,icon_file.directory[scene].width == 256 ?
+ 0 : icon_file.directory[scene].width);
+ (void) WriteBlobByte(image,icon_file.directory[scene].height == 256 ?
+ 0 : icon_file.directory[scene].height);
(void) WriteBlobByte(image,icon_file.directory[scene].colors);
(void) WriteBlobByte(image,icon_file.directory[scene].reserved);
(void) WriteBlobLSBShort(image,icon_file.directory[scene].planes);
{
if (LocaleCompare(keyword,"x") == 0)
{
- if (LocaleCompare((char *) name,"tspan") != 0)
- svg_info->bounds.x=GetUserSpaceCoordinateValue(svg_info,1,
- value)-svg_info->center.x;
+ svg_info->bounds.x=GetUserSpaceCoordinateValue(svg_info,1,value)-
+ svg_info->center.x;
break;
}
if (LocaleCompare(keyword,"x1") == 0)
{
if (LocaleCompare(keyword,"y") == 0)
{
- if (LocaleCompare((char *) name,"tspan") != 0)
- svg_info->bounds.y=GetUserSpaceCoordinateValue(svg_info,-1,
- value)-svg_info->center.y;
+ svg_info->bounds.y=GetUserSpaceCoordinateValue(svg_info,-1,value)-
+ svg_info->center.y;
break;
}
if (LocaleCompare(keyword,"y1") == 0)
char
*text;
+ SVGStripString(MagickTrue,svg_info->text);
text=EscapeString(svg_info->text,'\"');
(void) FormatLocaleFile(svg_info->file,"text %g,%g \"%s\"\n",
svg_info->bounds.x-svg_info->center.x,svg_info->bounds.y-
affine.ty=svg_info->bounds.y-x*
sin(DegreesToRadians(fmod(angle,360.0)))+y*
cos(DegreesToRadians(fmod(angle,360.0)));
- affine.tx-=x/2.0;
- affine.ty-=y/2.0;
+ affine.tx-=x;
+ affine.ty-=y;
break;
}
break;