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 26
1 files changed, 13 insertions, 13 deletions
diff --git a/agg-plot/text-shape.h b/agg-plot/text-shape.h
index c09b749e..a1a55edf 100644
--- a/agg-plot/text-shape.h
+++ b/agg-plot/text-shape.h
@@ -12,7 +12,7 @@ namespace draw {
class text_shape : public sg_object {
public:
text_shape(double x, double y, const char* text,
- double _size = 10.0, double hjustif = 0.0, double vjustif = 0.0):
+ double _size = 10.0, double hjustif = 0.0, double vjustif = 0.0):
m_sg_text(), m_x(x), m_y(y), m_text(text), m_size(_size),
m_scaling(0), m_trans(m_sg_text, identity_matrix), m_stroke(m_trans)
{
@@ -62,23 +62,23 @@ namespace draw {
const double dx = m.tx, dy = svg_y_coord(m.ty, h);
if (is_unit_matrix(m))
- {
- x += dx;
- y += dy;
- }
+ {
+ x += dx;
+ y += dy;
+ }
- str svgtext = str::print("<text x=\"%g\" y=\"%g\" id=\"text%i\"" \
- " style=\"font-size:%i\">" \
- " <tspan id=\"tspan%i\">%s</tspan>" \
- "</text>",
- x, y, id, txt_size, id, text);
+ str svgtext = str::print("<text x=\"%g\" y=\"%g\" id=\"text%i\"" \
+ " style=\"font-size:%i\">" \
+ " <tspan id=\"tspan%i\">%s</tspan>" \
+ "</text>",
+ x, y, id, txt_size, id, text);
str s;
if (is_unit_matrix(m))
- s = svgtext;
+ s = svgtext;
else
- s = str::print("<g transform=\"matrix(%g,%g,%g,%g,%g,%g)\">%s</g>",
- m.sx, m.shx, m.shy, m.sy, dx, dy, svgtext.cstr());
+ s = str::print("<g transform=\"matrix(%g,%g,%g,%g,%g,%g)\">%s</g>",
+ m.sx, m.shx, m.shy, m.sy, dx, dy, svgtext.cstr());
return s;
}
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月26日 20:46:03 +0000

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