From b8b22afbbc24050fada00fc1b7b9e9c6ed50cf54 Mon Sep 17 00:00:00 2001 From: Mike Morris Date: Thu, 19 Jun 2014 16:38:15 -0400 Subject: [PATCH] remove advance rounding --- include/mapnik/text/glyph_info.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/mapnik/text/glyph_info.hpp b/include/mapnik/text/glyph_info.hpp index ab37f7ed5..89956794c 100644 --- a/include/mapnik/text/glyph_info.hpp +++ b/include/mapnik/text/glyph_info.hpp @@ -67,9 +67,7 @@ struct glyph_info double ymin() const { return floor(unscaled_ymin * 64.0 * scale_multiplier); } double ymax() const { return ceil(unscaled_ymax * 64.0 * scale_multiplier); } double height() const { return ymax() - ymin(); }; - // TODO: we round to integers for now to maintain - // back compatibility with Mapnik 2.x - double advance() const { return floor(unscaled_advance * scale_multiplier); }; + double advance() const { return unscaled_advance * scale_multiplier; }; double line_height() const { return ceil(unscaled_line_height * scale_multiplier); }; };