Page 1 of 1

-kerning and font with kerning values

Posted: 2014-07-25T01:16:10-07:00
by chrisF
If I want to enhance or reduce letter spacing with the -kerning option then the font's kerning parameters are ignored.

The reasion is related to
annotate.c: RenderFreetype()

Code: Select all

{
          if (fabs(draw_info->kerning) >= MagickEpsilon)
            origin.x+=(FT_Pos) (64.0*direction*draw_info->kerning);
          else
            if (FT_HAS_KERNING(face))
              {
                FT_Vector kerning;
  
                ft_status=FT_Get_Kerning(face,last_glyph.id,glyph.id,  ft_kerning_default,&kerning);
                if (ft_status == 0)
                  origin.x+=(FT_Pos) (direction*kerning.x);
              }
          }
why not add draw_info->kerning all the time?

Re: -kerning and font with kerning values

Posted: 2014-07-25T04:19:50-07:00
by magick
We can reproduce the problem you posted and have a patch in ImageMagick 6.8.9-6 Beta available by sometime tomorrow. Thanks.