Merge branch 'master' of github.com:mapnik/mapnik

This commit is contained in:
Dane Springmeyer 2014-06-19 16:28:35 -07:00
commit 29ed31f69d

View file

@ -67,9 +67,7 @@ struct glyph_info
double ymin() const { return floor(unscaled_ymin * 64.0 * scale_multiplier); } double ymin() const { return floor(unscaled_ymin * 64.0 * scale_multiplier); }
double ymax() const { return ceil(unscaled_ymax * 64.0 * scale_multiplier); } double ymax() const { return ceil(unscaled_ymax * 64.0 * scale_multiplier); }
double height() const { return ymax() - ymin(); }; double height() const { return ymax() - ymin(); };
// TODO: we round to integers for now to maintain double advance() const { return unscaled_advance * scale_multiplier; };
// back compatibility with Mapnik 2.x
double advance() const { return floor(unscaled_advance * scale_multiplier); };
double line_height() const { return ceil(unscaled_line_height * scale_multiplier); }; double line_height() const { return ceil(unscaled_line_height * scale_multiplier); };
}; };