RightToLeftDirection ? -1.0 : 1.0)*kerning.x);
}
}
- ft_status=FT_Load_Glyph(face,(*grapheme)[i].index,flags);
+ ft_status=FT_Load_Glyph(face,(FT_UInt) (*grapheme)[i].index,flags);
(*grapheme)[i].x_advance=face->glyph->advance.x;
(*grapheme)[i].cluster=p-text;
last_glyph=(*grapheme)[i].index;
/*
Render UTF-8 sequence.
*/
- glyph.id=grapheme[i].index;
+ glyph.id=(FT_UInt) grapheme[i].index;
if (glyph.id == 0)
glyph.id=FT_Get_Char_Index(face,'?');
if ((glyph.id != 0) && (last_glyph.id != 0))
origin.x+=(FT_Pos) (64.0*draw_info->kerning);
glyph.origin=origin;
- glyph.origin.x+=grapheme[i].x_offset;
- glyph.origin.y+=grapheme[i].y_offset;
+ glyph.origin.x+=(FT_Pos) grapheme[i].x_offset;
+ glyph.origin.y+=(FT_Pos) grapheme[i].y_offset;
ft_status=FT_Load_Glyph(face,glyph.id,flags);
if (ft_status != 0)
continue;
if (*q == '0')
{
ssize_t
- value;
+ foo;
- value=(ssize_t) strtol(q,&q,10);
- (void) value;
+ foo=(ssize_t) strtol(q,&q,10);
+ (void) foo;
}
switch (*q)
{
pattern[MagickPathExtent];
const char
- *value;
+ *option;
register char
*r;
pattern[i]='\0';
if (LocaleNCompare(pattern,"filename:",9) != 0)
break;
- value=(const char *) NULL;
+ option=(const char *) NULL;
if (image != (Image *) NULL)
- value=GetImageProperty(image,pattern,exception);
- if ((value == (const char *) NULL) && (image != (Image *) NULL))
- value=GetImageArtifact(image,pattern);
- if ((value == (const char *) NULL) &&
+ option=GetImageProperty(image,pattern,exception);
+ if ((option == (const char *) NULL) && (image != (Image *) NULL))
+ option=GetImageArtifact(image,pattern);
+ if ((option == (const char *) NULL) &&
(image_info != (ImageInfo *) NULL))
- value=GetImageOption(image_info,pattern);
- if (value == (const char *) NULL)
+ option=GetImageOption(image_info,pattern);
+ if (option == (const char *) NULL)
break;
q--;
c=(*q);
*q='\0';
- (void) CopyMagickString(filename+(p-format-length),value,(size_t)
+ (void) CopyMagickString(filename+(p-format-length),option,(size_t)
(MagickPathExtent-(p-format-length)));
length+=strlen(pattern)-1;
*q=c;
# include <wingdi.h>
# endif
# else
+#pragma warning(disable: 4457)
+#pragma warning(disable: 4458)
# include <gdiplus.h>
+#pragma warning(default: 4457)
+#pragma warning(default: 4458)
# pragma comment(lib, "gdiplus.lib")
# endif
#endif