return(RenderX11(image,draw_info,offset,metrics,exception));
if (*draw_info->font == '^')
return(RenderPostscript(image,draw_info,offset,metrics,exception));
- if (IsPathAccessible(draw_info->font) != MagickFalse)
- {
- status=RenderFreetype(image,draw_info,draw_info->encoding,offset,
- metrics,exception);
- return(status);
- }
type_info=GetTypeInfo(draw_info->font,exception);
if (type_info == (const TypeInfo *) NULL)
- (void) ThrowMagickException(exception,GetMagickModule(),TypeWarning,
- "UnableToReadFont","`%s'",draw_info->font);
+ if (IsPathAccessible(draw_info->font) != MagickFalse)
+ {
+ status=RenderFreetype(image,draw_info,draw_info->encoding,offset,
+ metrics,exception);
+ return(status);
+ }
}
if ((type_info == (const TypeInfo *) NULL) &&
(draw_info->family != (const char *) NULL))