]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/273
authorCristy <urban-warrior@imagemagick.org>
Sat, 1 Oct 2016 16:21:15 +0000 (12:21 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sat, 1 Oct 2016 16:21:15 +0000 (12:21 -0400)
MagickCore/annotate.c
coders/ps.c

index c43f91496d353e0946f90af88a5ec58df222bcee..5e92ae27e5718857b260a40c1fef9588e043ee89 100644 (file)
@@ -920,6 +920,8 @@ static MagickBooleanType RenderType(Image *image,const DrawInfo *draw_info,
         }
       if (*draw_info->font == '-')
         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,
@@ -1333,7 +1335,7 @@ static MagickBooleanType RenderFreetype(Image *image,const DrawInfo *draw_info,
       (void) FT_Done_FreeType(library);
       (void) ThrowMagickException(exception,GetMagickModule(),TypeError,
         "UnableToReadFont","`%s'",draw_info->font);
-      return(RenderPostscript(image,draw_info,offset,metrics,exception));
+      return(MagickFalse);
     }
   if ((draw_info->metrics != (char *) NULL) &&
       (IsPathAccessible(draw_info->metrics) != MagickFalse))
index 90cf6221884acaabc6b569e378d74b3ddddf22ad..e85e2bfc2e7fb3867e4b82e5d223a2265f20580e 100644 (file)
@@ -980,7 +980,8 @@ static Image *ReadPSImage(const ImageInfo *image_info,ExceptionInfo *exception)
     }
   do
   {
-    (void) CopyMagickString(postscript_image->filename,filename,MagickPathExtent);
+    (void) CopyMagickString(postscript_image->filename,filename,
+      MagickPathExtent);
     (void) CopyMagickString(postscript_image->magick,image->magick,
       MagickPathExtent);
     if (columns != 0)