From 4bfeb9c5c24e3927bf2e49479166c64d13b2a23c Mon Sep 17 00:00:00 2001 From: Francesco Abbate Date: Tue, 7 Aug 2012 21:56:01 +0200 Subject: Implement a better mechanism to ensure grid fitting when rendering fonts --- agg-plot/text-shape.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'agg-plot/text-shape.h') diff --git a/agg-plot/text-shape.h b/agg-plot/text-shape.h index 53d1999c..e8dff0ce 100644 --- a/agg-plot/text-shape.h +++ b/agg-plot/text-shape.h @@ -13,7 +13,7 @@ namespace draw { m_text_label(text, round(_size)), m_x(x), m_y(y), m_font_size(_size), m_size(_size) { m_matrix.tx = m_x; - m_matrix.ty = round(m_y); + m_matrix.ty = m_y; m_text_label.model_mtx(m_matrix); compute_bounding_box(); } @@ -71,7 +71,7 @@ namespace draw { double x = m_x, y = m_y; m.transform(&x, &y); m_matrix.tx = x; - m_matrix.ty = round(y); + m_matrix.ty = y; m_text_label.approximation_scale(m.scale()); } -- cgit v1.2.3

AltStyle によって変換されたページ (->オリジナル) /