From: Mikko Rasa Date: Thu, 3 May 2018 16:18:31 +0000 (+0300) Subject: Round kerning values to nearest integer rather than down X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=2bd053c9c2207a7c0afa2defee10568fde2e7c50;p=ttf2png.git Round kerning values to nearest integer rather than down --- 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; } }