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:
Diffstat (limited to 'agg-plot/text-shape.h')
-rw-r--r--agg-plot/text-shape.h 5
1 files changed, 5 insertions, 0 deletions
diff --git a/agg-plot/text-shape.h b/agg-plot/text-shape.h
index 326ca9b8..c09b749e 100644
--- a/agg-plot/text-shape.h
+++ b/agg-plot/text-shape.h
@@ -44,6 +44,11 @@ namespace draw {
virtual void bounding_box(double *x1, double *y1, double *x2, double *y2)
{
agg::bounding_rect_single(m_sg_text, 0, x1, y1, x2, y2);
+ const double pad = 1.0;
+ *x1 -= pad;
+ *y1 -= pad;
+ *x2 += pad;
+ *y2 += pad;
}
virtual str write_svg(int id, agg::rgba8 c, double h)
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月27日 13:40:18 +0000

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