X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=ttf2png.c;h=e890e33643084f7784c8d23e280555c425e8fec4;hb=2bd053c9c2207a7c0afa2defee10568fde2e7c50;hp=eabe1ca93b588f6419c6ac76479cd44b4b99eef4;hpb=59f8fe66098f933c68dd61e8f0b94f3cf8d698a7;p=ttf2png.git diff --git a/ttf2png.c b/ttf2png.c index eabe1ca..e890e33 100644 --- a/ttf2png.c +++ b/ttf2png.c @@ -543,7 +543,7 @@ int init_font(Font *font, FT_Face face, const Range *ranges, unsigned n_ranges, kern = &font->kerning[font->n_kerning++]; kern->left_code = font->glyphs[i].code; kern->right_code = font->glyphs[j].code; - kern->distance = kerning.x/64; + kern->distance = (kerning.x+32)/64; } }