-kerning and font with kerning values

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
chrisF
Posts: 3
Joined: 2014-07-25T00:39:51-07:00
Authentication code: 6789

-kerning and font with kerning values

Post 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?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: -kerning and font with kerning values

Post 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.
Post Reply