some notes on kerning bugs in ft2.

SVN revision: 35876
This commit is contained in:
Carsten Haitzler 2008-09-08 02:08:43 +00:00
parent b73180cd01
commit aa2fded0fc
1 changed files with 6 additions and 1 deletions

View File

@ -205,8 +205,13 @@ evas_common_font_draw(RGBA_Image *dst, RGBA_Draw_Context *dc, RGBA_Font *fn, int
{
FT_Vector delta;
/* NOTE: ft2 seems to have a bug. and sometimes returns bizarre
* values to kern by - given same font, same size and same
* prev_index and index. auto/bytecode or none hinting doesnt
* matter */
if (FT_Get_Kerning(fi->src->ft.face, prev_index, index,
ft_kerning_default, &delta) == 0)
ft_kerning_default,
&delta) == 0)
pen_x += delta.x >> 6;
}
pface = fi->src->ft.face;