gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/text.h
diff options
context:
space:
mode:
Diffstat (limited to 'agg-plot/text.h')
-rw-r--r--agg-plot/text.h 4
1 files changed, 2 insertions, 2 deletions
diff --git a/agg-plot/text.h b/agg-plot/text.h
index 96957bbf..c6c62e6e 100644
--- a/agg-plot/text.h
+++ b/agg-plot/text.h
@@ -23,7 +23,7 @@ class text : public sg_object
public:
text(const char* text, double size = 10.0, double hjustif = 0.0, double vjustif = 0.0):
m_x(0.0), m_y(0.0), m_angle(0.0),
- m_hjustif(hjustif), m_vjustif(vjustif), m_text_label(text, size)
+ m_hjustif(hjustif), m_vjustif(vjustif), m_text_label(text, round(size))
{
m_text_label.model_mtx(m_matrix);
}
@@ -54,7 +54,7 @@ class text : public sg_object
const char * get_text() const { return m_text_label.text().cstr(); }
- double text_height() const { return m_text_label.text_height(); }
+ double text_height() const { return m_text_label.get_text_height(); }
void set_point(double x, double y)
{
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月14日 03:35:40 +0000

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