-kerning and font with kerning values
Posted: 2014-07-25T01:16:10-07:00
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()
why not add draw_info->kerning all the time?
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);
}
}