Implement a better mechanism to ensure grid fitting when rendering fonts - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/text-shape.h
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2012年08月07日 21:56:01 +0200
committerFrancesco Abbate <francesco.bbt@gmail.com>2012年08月07日 21:56:01 +0200
commit4bfeb9c5c24e3927bf2e49479166c64d13b2a23c (patch)
tree16e15d73a2f8205a1366dda3cf1e4217022ce1d4 /agg-plot/text-shape.h
parentb1ced8325ff73de83a7f0113ff3b7c448092df6b (diff)
downloadgsl-shell-4bfeb9c5c24e3927bf2e49479166c64d13b2a23c.tar.gz
Implement a better mechanism to ensure grid fitting when rendering fonts
Diffstat (limited to 'agg-plot/text-shape.h')
-rw-r--r--agg-plot/text-shape.h 4
1 files changed, 2 insertions, 2 deletions
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());
}
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月27日 18:12:39 +0000

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