+2019-01-19 7.0.8-25 Cristy <quetzlzacatenango@image...>
+ * Eliminate spurious font warning (reference
+ https://github.com/ImageMagick/ImageMagick/issues/1458).
+ * Support HEIC EXIF & XMP profiles.
+
2019-01-12 7.0.8-24 Cristy <quetzlzacatenango@image...>
* Release ImageMagick version 7.0.8-24, GIT revision 15233:db129ba64:20190112
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)
- if (IsPathAccessible(draw_info->font) != MagickFalse)
- {
- status=RenderFreetype(image,draw_info,draw_info->encoding,offset,
- metrics,exception);
- return(status);
- }
+ (void) ThrowMagickException(exception,GetMagickModule(),TypeWarning,
+ "UnableToReadFont","`%s'",draw_info->font);
}
if ((type_info == (const TypeInfo *) NULL) &&
(draw_info->family != (const char *) NULL))
#include "MagickCore/magick.h"
#include "MagickCore/memory_.h"
#include "MagickCore/quantum-private.h"
+#include "MagickCore/resource_.h"
#include "MagickCore/static.h"
#include "MagickCore/string_.h"
#include "MagickCore/module.h"
*/
y=20;
draw_info=CloneDrawInfo(image_info,(DrawInfo *) NULL);
- draw_info->font=AcquireString(image->filename);
+ draw_info->font=AcquireString("");
+ (void) ImageToFile(image,draw_info->font,exception);
ConcatenateString(&draw_info->primitive,"push graphic-context\n");
(void) FormatLocaleString(buffer,MagickPathExtent,
" viewbox 0 0 %.20g %.20g\n",(double) image->columns,(double) image->rows);
/*
Relinquish resources.
*/
+ (void) RelinquishUniqueFileResource(draw_info->font);
draw_info=DestroyDrawInfo(draw_info);
(void) CloseBlob(image);
return(GetFirstImageInList(image));