]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Fri, 13 Jan 2012 17:46:11 +0000 (17:46 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Fri, 13 Jan 2012 17:46:11 +0000 (17:46 +0000)
MagickCore/annotate.c

index 581248f03e5a249b9b96e8c3f108ebb6e2052a27..ceb753e400a401f5513798f96cbbaab0c2ab6f46 100644 (file)
@@ -1246,9 +1246,24 @@ static MagickBooleanType RenderFreetype(Image *image,const DrawInfo *draw_info,
       draw_info->encoding != (char *) NULL ? draw_info->encoding : "none",
       draw_info->pointsize);
   flags=FT_LOAD_NO_BITMAP;
+  if (draw_info->text_antialias == MagickFalse)
+     flags|=FT_LOAD_TARGET_MONO;
+  else
+    {
+#ifdef FT_LOAD_TARGET_LCD
+      flags|=FT_LOAD_TARGET_LCD;
+#else
+#if FT_LOAD_TARGET_LIGHT
+      flags|=FT_LOAD_TARGET_LIGHT;
+#endif
+#endif
+    }
   value=GetImageProperty(image,"type:hinting",exception);
   if ((value != (const char *) NULL) && (LocaleCompare(value,"off") == 0))
     flags|=FT_LOAD_NO_HINTING;
+  value=GetImageProperty(image,"type:autohint",exception);
+  if ((value != (const char *) NULL) && (LocaleCompare(value,"on") == 0))
+    flags|=FT_LOAD_FORCE_AUTOHINT;
   glyph.id=0;
   glyph.image=NULL;
   last_glyph.id=0;